turns input into integers