Actually, extraterrestrials had arrived at the earth in 10 thousands years ago, and they monitored the creature on the earth, especially for their process and evolution. They put some monitors on the (`x _{i}`,

Now, they want to know that how many monitors' data could they receive when the UFO at the point(`x _{i}`,

There are multiple input cases. For each case, the first line contains two integers `n` and `m`, `n` is the times of operating, `m` is as mentioned above.Then followed by `n` lines, each line contains a char `op` and two integers `x _{i}`,

提交代码