AtCoder Beginner Contest 107
A
Train
AtCoder
⌀ 0
原题
←B →
翻译中…

Problem Statement

翻译中…

There is an $N$-car train.

翻译中…

You are given an integer $i$. Find the value of $j$ such that the following statement is true: "the $i$-th car from the front of the train is the $j$-th car from the back."

翻译中…

Constraints

翻译中…
  • $1 \leq N \leq 100$
  • $1 \leq i \leq N$
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

N i

翻译中…

Output

翻译中…

Print the answer.

翻译中…

样例

Input #1
4 2
Output #1
3
The second car from the front of a $4$-car train is the third car from the back.
Input #2
1 1
Output #2
1
Input #3
15 11
Output #3
5
题目信息
题号
abc107_a
时间限制
2 s
内存限制
1024 MB

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