We can see from the explanation that the input data will be only one row which will contain an integer in the interval [3 … 1000]. Therefore we will use a variable of type int.