a = list(map(int,input("\nEnter the numbers : ").strip().split()))

Read more of this post