12899 - Calendar Calculation   

Description

Write a program to input a date in year 2020 and calculate the number of days from 1/1/2020 to that date, inclusive.

Hint:

Your output needs a break line character "\n".

 

 

  

Input

M/D

Integer (month) such that 1 <= M <= 12.

Integer D (day) such that 1 <= D <= 31.

 

Output

E

Integer E (difference in days) such that 1 <= D <= 366.

Sample Input  Download

Sample Output  Download

Tags




Discuss