Problem3008--变幻

3008: 变幻

Time Limit: 1.000 Sec  Memory Limit: 256 MB
Submit: 69  Solved: 8
[Submit] [Status] [Web Board] [Creator:]

Description


Input


Output


Sample Input

3 1 
5 6 7

Sample Output

4

HINT


Source/Category

 

[Submit] [Status]