Z - Missing Number
题号:NC224696
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

You are teaching kindergarten! You wrote down the numbers from 1 to , in order, on a whiteboard. When you weren’t paying attention, one of your students erased one of the numbers. Can you tell which number your mischievous student erased?

输入描述:

The first line of input contains a single integer , which is the number of numbers that you wrote down.
The second line of input contains a string of digits, which represents the numbers you wrote down (minus the one that has been erased). There are no spaces in this string. It is guaranteed to contain all of the numbers from 1 to , in order, except for the single number that the student erased.

输出描述:

Output a single integer, which is the number that the tricky student erased.
示例1

输入

复制
5
1235

输出

复制
4
示例2

输入

复制
10
1234568910

输出

复制
7
示例3

输入

复制
15
1234567891012131415

输出

复制
11

备注: