Time Limit: 1 sec
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.
Input will contain two integers. Today’s date, N (N<=30) and the number of days, M (M<=30) which after they met.
Output will show a single integer in a separate line.
Problem Setter: Samia Safa Ahmed
Special thanks to Nezam Uddin