Multiples of 3#2909

Multiples of 3

1 second
128 megabytes
Medium (≈1000)

There are numbers x_0, x_1, \ldots, x_{n - 1}, initially all equal to . You have to perform operations of two types:

Input

The first line contains two integers and q~(1 \le n, q \le 10^5) — the number of elements and the number of operations.

Each of the next lines contains one operation in the form or 1~a~b~(0 \le a \le b \le n - 1).

Output

For each operation of type , print the answer on a separate line.

Examples

Example 1

Loading
Loading