1897.Kids' Riddle

Time Limit: 1s Memory Limit: 256MB

Programmers' kids solve this riddle in 5-10 minutes. How fast can you do it?

Input Format(From the terminal/stdin)

The input contains a single integer n (0 \le n \le 2000000000).

Output Format(To the terminal/stdout)

Output a single integer.

Sample Input 1

Copy
11
  \n

Sample Output 1

Copy
2
 \n

Sample Input 2

Copy
14
  \n

Sample Output 2

Copy
0
 \n

Sample Input 3

Copy
61441
     \n

Sample Output 3

Copy
2
 \n

Sample Input 4

Copy
571576
      \n

Sample Output 4

Copy
10
  \n

Sample Input 5

Copy
2128506
       \n

Sample Output 5

Copy
3
 \n

Submit

请先 登录

© 2025 FAQs