A - Counting Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

配点 : 100

問題文

A 以上かつ B 以下の整数はいくつありますか?

制約

  • 1 \leq A \leq 100
  • 1 \leq B \leq 100
  • A, B は整数である。

入力

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

A B

出力

A 以上かつ B 以下の整数の個数を出力せよ。


入力例 1

2 4

出力例 1

3

2 以上かつ 4 以下の整数は 2, 3, 43 つなので、 3 を出力してください。


入力例 2

10 100

出力例 2

91

入力例 3

3 2

出力例 3

0

3 以上かつ 2 以下の整数は存在しないので、 0 を出力してください。

Score : 100 points

Problem Statement

How many integers not less than A and not more than B are there?

Constraints

  • 1 \leq A \leq 100
  • 1 \leq B \leq 100
  • A and B are integers.

Input

Input is given from Standard Input in the following format:

A B

Output

Print the number of integers not less than A and not more than B.


Sample Input 1

2 4

Sample Output 1

3

We have three integers not less than 2 and not more than 4: 2, 3, 4, so we should print 3.


Sample Input 2

10 100

Sample Output 2

91

Sample Input 3

3 2

Sample Output 3

0

We have no integers not less than 3 and not more than 2, so we should print 0.