#icpc2013summerwarmingUpd. [icpc2013summer_warmingUp_d]Graph Destruction

[icpc2013summer_warmingUp_d]Graph Destruction

Description

Given a simple undirected graph with NN vertices and MM edges, process a sequence of KK queries of two types:

  • Delete an edge ee
  • Output whether there exists a path between vertex vv and ww

Input

The first line of the input file contains the integers NN, MM and KK (1leqN,M,Kleq1051 \\leq N, M, K \\leq 10^5), separated by a space.
The next MM lines describe the edges. The ii-th of these lines describes edge ii and it contains the integers aia_i and bib_i (1leqai,bileqN1 \\leq a_i, b_i \\leq N), separated by a space. Edge ii connects vertex aia_i and bib_i. The vertices are labeled 11 to NN.
The next KK lines describe the queries. Each query is either of the following two forms:

  • 0 e: delete an edge ee (1leqeleqM1 \\leq e \\leq M, and each edge never appears twice)
  • 1 v w: output whether there exists a path between vv and ww (1leqv,wleqN1 \\leq v, w \\leq N)

Output

For each query of the 2nd type, print YES or NO, one per line, in the same order that the queries appear in the input file.


Sample Input


4 4 5
1 2
2 3
3 1
1 4
1 1 4
0 4
1 2 4
0 1
1 1 2

Sample Output


YES
NO
YES

Source Name

The First KMCMonthly Contest