Homo or Hetero?#8515

Homo or Hetero?

1 second
64 megabytes
Very easy

Consider a list of numbers with two operations:

For example: the result of the insertion of a number 4 to the list [1,2,1] is the list [1,2,1,4]. If we delete the number 1 from this list, we get the list [2,1,4], but if we delete the number 3 from the list [1,2,1,4], the list stays unchanged.

The list is homogeneous if it contains at least two equal numbers and the list is heterogeneous if it contains at least two different numbers. For example: the list [2,2] is homogeneous, the list [2,1,4] is heterogeneous, the list [1,2,1,4] is both, and the empty list is neither homogeneous, nor heterogeneous.

Write a program that handles a number of the operations insert and delete on the empty list and determines list's homogeneity and heterogeneity after each operation.

Input

The first line of the input file contains an integer number N (1 ≤ N ≤ 10^5) — the number of operations to handle. Following N lines contain one operation description each. The operation description consists of a word "insert" or "delete", followed by an integer number K (-10^9 ≤ K ≤ 10^9) — the operation argument.

Output

For each operation output a line, containing a single word, describing the state of the list after the operation:

Examples

Example 1

Loading
Loading