Problem

3 /9


Sum of bits

Problem

Write a program with a recursive function to calculate the sum of bits in a natural number.

Input
The first line contains a natural number N (  N<=109 ).

Imprint
Print the sum of the bits.

Examples
# Input Output
1 16 1
2 7 3