419 - Middle Number(s)
Middle Number(s)
Time Limit: 1 sec
The Problem
Write a computer program that read an integer number N, and find the middle number or numbers between 1 and N.
Example
if N = 5 then
1 2 3 4 5
The middle number is 3
If N = 8 then
1 2 3 4 5 6 7 8
The middle numbers are 4 and 5.
The Input
Input file contain a series of line, each line contains one integer numbers N (0<N<1016).
The Output
For each line of input, output will show one integer numbes if N is odd or show two integer numbers which are seperated by space if N is even which is or are the middle number or numbers between 1 and N in a separate line.
Sample Input
5
8
11
Sample Output
3
4 5
6
Problem Setter: Shahin ShamS