2048. Calendar

单点时限: 2.0 sec

内存限制: 256 MB

First year of new millenium is gone away. In commemoration of it write a program that finds the name of the day of the week for any date in 2007.

输入格式

There are so many tests.Each line contains two Non-negative integer numbers N and M, where N is a day number in month M. N and M is not more than 100.

输出格式

Write current number of the day of the week for given date (Monday - number 1, … , Sunday - number 7) or phrase “Impossible” if such date does not exist.

样例

Input
23 11
Output
5

86 人解决,109 人已尝试。

119 份提交通过,共有 324 份提交。

3.4 EMB 奖励。

创建: 18 年,4 月前.

修改: 8 年,7 月前.

最后提交: 2 周,3 天前.

来源: N/A

题目标签