#988. 小杨的考试
小杨的考试
说明
今天是星期 <math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>�</mi></mrow></semantics></math>X,小杨还有 <math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>�</mi></mrow></semantics></math>N 天就要考试了,你能推算出小杨考试那天是星期几吗?(本题中使用 <math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>7</mn></mrow></semantics></math>7 表示星期日)
输入格式
输入 <math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn></mrow></semantics></math>2 行,第一行一个整数 <math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>�</mi><mo stretchy="false">(</mo><mn>1</mn><mo>≤</mo><mi>�</mi><mo>≤</mo><mn>7</mn><mo stretchy="false">)</mo></mrow></semantics></math>X(1≤X≤7);第二行一个整数 <math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>�</mi><mo stretchy="false">(</mo><mn>1</mn><mo>≤</mo><mi>�</mi><mo>≤</mo><mn>364</mn><mo stretchy="false">)</mo></mrow></semantics></math>N(1≤N≤364)。
输出格式
输出一个整数,表示小杨考试那天是星期几。
样例
1
6
7