Testing Round 10
A
Forgotten Episode
Codeforces
800
原题
←B →
翻译中…

Polycarpus adores TV series. Right now he is ready to finish watching a season of a popular sitcom "Graph Theory". In total, the season has $*n*$ episodes, numbered with integers from $1$ to $*n*$.

翻译中…

Polycarpus watches episodes not one by one but in a random order. He has already watched all the episodes except for one. Which episode has Polycaprus forgotten to watch?

翻译中…

Input

翻译中…

The first line of the input contains integer $*n*$ $(2 ≤ *n* ≤ 100000)$ — the number of episodes in a season. Assume that the episodes are numbered by integers from $1$ to $*n*$.

翻译中…

The second line contains $*n* - 1$ integer $*a*_{1}, *a*_{2}, ..., *a*_{*n*}$ $(1 ≤ *a*_{*i*} ≤ *n*)$ — the numbers of episodes that Polycarpus has watched. All values of $*a*_{*i*}$ are distinct.

翻译中…

Output

翻译中…

Print the number of the episode that Polycarpus hasn't watched.

翻译中…

样例

Input #1
10
3 8 10 1 7 9 6 5 2
Output #1
4
InputCopy OutputCopy
题目信息
题号
440A
所属比赛
时间限制
1 s
内存限制
256 MB
标签
模拟

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。