title: Iterate through each integer python separated by a blankspace/endline
body: <p>I am a Python 2.7 user who recently switched to python3. While reading integers separated by a blackspace/endline I used <code>nex = iter(map(int,stdin.read().split())).next</code>, where <code>nex()</code> acts as a function to input integers (Suppose for inputting an integral value in x -> <code>x=nex()</code>. But in python3 this doesn't seem to work. Someone please propose a workaround for using the same in Python3.</p>