inp = list(map(int,input().split()))

Read more of this post