A - Train Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

配点 : 100

問題文

N 両編成の列車があります。 この列車の前から i 両目は、後ろから何両目でしょうか?

制約

  • 1 \leq N \leq 100
  • 1 \leq i \leq N

入力

入力は以下の形式で標準入力から与えられる。

N i

出力

答えを出力せよ。


入力例 1

4 2

出力例 1

3

4 両編成の列車において、前から 2 両目の車両は、後ろから 3 両目です。


入力例 2

1 1

出力例 2

1

入力例 3

15 11

出力例 3

5

Score : 100 points

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.


Sample Input 1

4 2

Sample Output 1

3

The second car from the front of a 4-car train is the third car from the back.


Sample Input 2

1 1

Sample Output 2

1

Sample Input 3

15 11

Sample Output 3

5