跳至正文
题库3411
#3411

Mysterious numbers - 2

查看题目操作

Mysterious numbers - 2

题目描述

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

2 3 2
5
13 14 1
14
14 5 9
464
17 18 3
53