P24156 [AtCoder] Counting
入门
题目描述

Problem Statement

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

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.

Constraints

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

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.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
2 4
样例输出
3