You approach is very close to the success. Just use
l = [int(i) for i in input().split()]
And the many numbers will be contained in the
list l
. Then you may individually access the items of the list, for instance:
print(l[0])
See, for instance
Python Lists[
^].