| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 5 | 4 | 4 | 80.000% |
Android Vasya likes the history of the ancient world. He likes to read about various superstitions people had at that time.
Recently Vasya came across a superstition concerning his favorite number 13. It turned out, that ancient people considered this number unlucky and avoided it as much as they could:
Vasya was especially amused by the superstition about Friday. How could people think that something bad could happen in such a wonderful day like Friday?
Now Vasya makes a research in the ancient world history covering a period from year $A$ till year $B$. He wonders how many unlucky Fridays this period contains. Help him to cope with this simple task.
The only line contains integers $A$ and $B$ (1919ドル \leq A \leq B \leq 10^9$). Androids use the Gregorian style for chronology. According to it the year is leap if its number is a multiple of 400 or if it is a multiple of 4 but is not a multiple of 100. In the leap years February is extended to 29 days.
For every $k$ from 0 to 12 output how many times in the period from Vasya's research there was a year with exactly $k$ unlucky Fridays.
2015 2016
0: 0 1: 1 2: 0 3: 1 4: 0 5: 0 6: 0 7: 0 8: 0 9: 0 10: 0 11: 0 12: 0
In 2015 Fridays are February 13, March 13 and November 13, and in 2016 is May 13 only.