s = '123 456' res = map(int,s.split) print(res)