This page is still under construction.

Parts of this page are still being built. What you see may change.

And Query

Time limit1sMemory limit512 MB

Summary
The statement gives only query counts and the labels 1 and 2, with no description of what update or print do, so no solution can be derived.
Level

Medium7 of 10

Topics
Implementation
Solved
No attempts yet

Problem

Write a program that performs the following queries.

  • 1: update.
  • 2: print.

Input

The first line gives the number of queries QQ. (1≤Q≤1061 \le Q \le 10^6)

Each of the next QQ lines contains one query.

Output

For each query, print the answer on its own line.

Examples1

  1. Example 1

    Input
    1
    1
    
    Expected output
    와