2x+2$2x + 2$

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

bobo has nn integers 1,2,,n1, 2, \dots, n and uses them to play a game.

He would like to choose a subset SS of 1,2,,n\\{1, 2, \dots, n\\} such that for all xSx \in S, (2x+2)S(2x + 2) \notin S.

Now he is curious about the maximum size of SS.

입력

The first line contains an integer nn (1n<10100)1 \leq n < 10^{100}).

출력

A single integer denotes the maximum size.