问题3420--Help a PhD candidate out!

3420: Help a PhD candidate out!

[命题人 : ]
时间限制 : 5.000 sec  内存限制 : 64 MB

题目描述

Jon Marius forgot how to add two numbers while doing research for his PhD. And now he has a long list of addition problems that he needs to solve, in addition to his computer science ones! Can you help him? On his current list Jon Marius has two kinds of problems: addition problems on the form "a+b" and the ever returning problem "P=NP". Jon Marius is a quite distracted person, so he might have so solve this last problem several times, since he keeps forgetting the solution. Also, he would like to solve these problems by himself, so you should skip these.

输入

The first line of input will be a single integer N (1 <= N <= 1000) denoting the number of testcases. Then follow N lines with either "P=NP" or an addition problem on the form "a + b", where a, b 2 [0, 1000] are integers.

输出

Output the result of each addition. For lines containing "P=NP", output "skipped".

样例输入 Copy

4
2+2
1+2
P=NP
0+0

样例输出 Copy

4
3
skipped
0

来源/分类