- Time limit: 1.00 s
- Memory limit: 512 MB
Given a positive integer , create a maximum-size subset such that for all distinct integers , .
Input
The only input line has an integer .
Output
First print an integer : the number of elements in . Then, print an example how to construct . You can print any valid solution.
Constraints
Example
Input:
11
Output:
5 2 4 6 9 10