A. Dreamoon and Ranking Collection
time limit per test :1 seconds memory limit per test :256 megabytes
input :standard input output :standard output
Dreamoon is a big fan of the Codeforces contests.
One day, he claimed that he will collect all the places from 1 to 54 after two more rated contests. It's amazing!
Based on this, you come up with the following problem:
There is a person who participated in n Codeforces rounds. His place in the first round is a1, his place in the second round is a2, ..., his place in the n-th round is an.
You are given a positive non-zero integer x.
Please, find the largest v such that this person can