CF656A Da Vinci Powers

Description

N/A

Input Format

The input contains a single integer $ a $ ( $ 0

Output Format

Output a single integer.