Mysterious numbers - 2

题目描述

输入输出格式

输入格式


The only line of input contains three integers $ a_{1},a_{2},a_{3} $ ( $ 1<=a_{1},a_{2},a_{3}<=20 $ ), separated by spaces.

输出格式


Output a single integer.

输入输出样例

输入样例 #1

2 3 2

输出样例 #1

5

输入样例 #2

13 14 1

输出样例 #2

14

输入样例 #3

14 5 9

输出样例 #3

464

输入样例 #4

17 18 3

输出样例 #4

53