Consider a real axis and segments on it. You are to write a program that processes queries of two kinds.
Query '+ ' adds a segment from point to point . Your program should print the number of segments that are (non-strictly) inside the new one.
Query '- ' removes one segment from point to point . If there is no such segment, ignore this query.
You may assume that no more than segments will present on the axis simultaneously.
Each line contains one query. Query can be in the form '- ' or '+ ' where and are integers (-10^9 ≤ < ≤ 10^9). There will be no more than queries.
Print to the output one line for each '+ ' query, containing the number of segments inside the added segment.
Example 1