J. Date calculationtime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputIn Gregorian calendar a typical year consists of 365 days and 12 months. The numbers of days in the months are: 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31. If year index is divisible by 400, or divisible by 4 but not by 100, the year becomes leap year, with one extra day in the second month (the one which typically has 28 days).You are given the index of the year and the index of the day in the year. Find out the date of this day (day and month it will fall upon).InputThe first line of input contains the year index, between 1600 and 2400, inclusive. The second line contains the day index, between 1 and 366, inclusive. It is guaranteed that the day index will be valid for this year, i.e., day 366 will occur only in a leap year.OutputOutput the index of the day and the index of the month, separated with a space.ExamplesInput2011324Output20 11Input2012274Output30 9NoteAll indexes are 1-based.
Input2011324
Output20 11
['*special problem', '*1800']