Олимпиадный тренинг

Задача 31837. Bit product


Задача

Темы: Рекурсия
Write a program with a recursive function to calculate the product of bits in a natural number.

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

Imprint
Output the product of bits.

Examples
# Input Output
1 16 0
2 7 1


 
Запрещенные операторы:for;while;until