P26848 [AtCoder] Pakken Gasshuku 2103
普及
题目描述

Problem Description

In the year 2103, Tsukukoma Pakken has grown to become a major corporation on a national scale, and the "Pakken Gasshuku 2103" is held.

The "Pakken Gasshuku 2103" starts on the morning of December A and ends on the evening of December B.

How many days does this camp last?

Input Format

The input is given from the standard input in the following format:

$ A $ $ B $

Output Format

Output the number of days the "Pakken Gasshuku 2103" lasts as an integer.

Sample Input and Output

Sample Input #1

24 27

Sample Output #1

4

Sample Input #2

15 15

Sample Output #2

1

Sample Input #3

9 22

Sample Output #3

14

Notes/Hints

Constraints

  • $1 \leq A \leq B \leq 31$.
  • All inputs are integers.

Partial Points

There are no partial points for this problem. Correctly solving all test cases will award 100 points.

Sample Explanation 1

In Sample Input 1, the "Pakken Gasshuku 2103" starts on December 24 and ends on December 27. Therefore, the camp lasts for 4 days: December 24, 25, 26, and 27.

Sample Explanation 2

Note that the "Pakken Gasshuku 2103" may last only 1 day.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
24 27
样例输出
4