Problems
400 - Birthday
SUBMIT PROBLEM

Birthday

Time Limit: 1 sec

 

The Problem

Rahim and Karim is close friends. One day Rahim said tomorrow is my birthday and you are invited. After M days Karim and Rahim met again. Rahim asked Karim do you remember when my birthday was.

Can you help Karim to remember the date of Rahim’s Birthday?? Here months will be counted as 30 days.

The Input

Input will contain two integers. Today’s date, N (N<=30) and the number of days, M (M<=30) which after they met.

 

The Output

Output will show a single integer in a separate line.

 

Sample Input

5 17

 

Sample Output

19

 

 

 

 

Problem Setter: Samia Safa Ahmed

Special thanks to Nezam Uddin