#P277. 练45.2 异或运算

练45.2 异或运算

Description

Given an integer nn, find how many integers xx in the range 00 to nn satisfy x(2×x)(3×x)=0x \oplus (2 \times x) \oplus (3 \times x) = 0.

Input Format

A single line containing the integer nn (0n1060≤n≤10^6).

Output Format

The number of such xx.

Sample

2
3