CF171G Mysterious numbers - 2

Description

N/A

Input Format

The only line of input contains three integers $ a_{1},a_{2},a_{3} $ ( $ 1

Output Format

Output a single integer.