AKOJ正在加载中...

4166: Mysterious numbers - 2

金币值:2 定数:1 时间限制:2.000 s 内存限制:256 M
正确:0 提交:0 正确率:0.00% 命题人:
点赞量:0 收藏量:0 题目类型:程序

题目描述

time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
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.

Examples
Input
2 3 2
Output
5
Input
13 14 1
Output
14
Input
14 5 9
Output
464
Input
17 18 3
Output
53