Codeforces Beta Round 92 (Div. 2 Only)
翻译中…
Petr stands in line of $*n*$ people, but he doesn't know exactly which position he occupies. He can say that there are no less than $*a*$ people standing in front of him and no more than $*b*$ people standing behind him. Find the number of different positions Petr can occupy.
翻译中…
Input
翻译中…
The only line contains three integers $*n*$, $*a*$ and $*b*$ ($0 ≤ *a*, *b* < *n* ≤ 100$).
翻译中…
Output
翻译中…
Print the single number — the number of the sought positions.
翻译中…
Note
翻译中…
The possible positions in the first sample are: 2 and 3 (if we number the positions starting with 1).
翻译中…
In the second sample they are 3, 4 and 5.
翻译中…
样例
Input #1
3 1 1
Output #1
2
InputCopy
OutputCopy
Input #2
5 2 3
Output #2
3
InputCopy
OutputCopy
题目信息
标签
数学
题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。