1009: 2018年的第几天

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:72 Solved:41

Description

输入两个数分别代表今年(2018年)的月份和日期,输出一个数字代表这个日期是2018年的第几天。

Input

6
2

Output

153

Sample Input Copy

2
27

Sample Output Copy

58

Source/Category