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

83 人解决,106 人已尝试。

93 份提交通过,共有 298 份提交。

3.6 EMB 奖励。

创建: 17 年,10 月前.

修改: 8 年前.

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

来源: N/A

题目标签