parse input values as integers