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

69 人解决,92 人已尝试。

76 份提交通过,共有 260 份提交。

3.9 EMB 奖励。

创建: 16 年,12 月前.

修改: 7 年,2 月前.

最后提交: 1 年,4 月前.

来源: N/A

题目标签