I am new to python. I searched and found out how to do it in python 3:
v = [int(x) for x in input().split()]
but in python 2 I get the syntax error. I need it for foobar because I can't code in c++ nor python 3 there which is incredibly annoying.