#P171G. Mysterious numbers - 2

Mysterious numbers - 2

Description

The only line of input contains three integers a1, a2, a3 (1 ≤ a1, a2, a3 ≤ 20), separated by spaces.

Output a single integer.

Input

The only line of input contains three integers a1, a2, a3 (1 ≤ a1, a2, a3 ≤ 20), separated by spaces.

Output

Output a single integer.

2 3 2

13 14 1

14 5 9

17 18 3

5

14

464

53