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

Read more of this post