K. Rabbit Subtraction
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
5
9 12 1 3 7
Output
6