Water Problems 2

Time Limit : 1 Second

Memory Limit : 256 MB

Submission: 74

Solved: 43

Description

skyjiange 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 x people standing in front of him and no more than y people standing behind him. Find the number of different positions skyjiange can occupy.

Input

each line contains three integers n, x and y(0<=x, y<n<=100), process to the EOF.

Output

print number of the sought positions each line.

sample input
3 1 1
5 2 3
sample output
2
3
hint
source
© 2015 HUST ACMICPC TEAM. All Right Reserved.