AlgoBazaAlgoBaza
Back to tasks

Tomorrow

Beginner

Python for kids 路 Lesson 30: Contest tasks with conditions

Problem Statement

Read today's day of the month, then the number of days in that month. Print which day of the month it will be tomorrow.

Input Format

Two whole numbers: the day (1..31) and the number of days in the month (28..31, not less than the day), each on its own line.

Output Format

One number - the result.

Examples
Example 1

Input

14
30

Output

15
Example 2

Input

31
31

Output

1