bobo has n integers 1,2,…,n and uses them to play a game.
He would like to choose a subset S of 1,2,…,n such that for all x∈S, (2x+2)∈/S.
Now he is curious about the maximum size of S.
The first line contains an integer n (1≤n<10100).
A single integer denotes the maximum size.