The undirected graph is given. Two types of operations are performed on graph in the given order:
cut — cut a graph, or delete an edge from a graph;
ask — check, whether two given vertices lie in the same connected component.
It is known that after performing all types of cut operations there is no edges left in the graph. Give the result for each ask operation.
The first line contains three integers — the number of vertices n in a graph, the number of edges m and the number of operations k (1≤n≤50000,0≤m≤105,m≤k≤150000).
The next m lines define the graph edges; i-th line contains two integers ui and vi (1≤ui,vi≤n) — the end numbers of the i-th edge. The vertices are numbered starting from one; graph does not contain multiple edges and loops.
The next k lines describe the operations. Operation of type cut is given with the line "cut u v" (1≤u,v≤n), which means that the edge between the vertices u and v is deleted from a graph. Operation of type ask is given with the line "ask u v" (1≤u,v≤n), which means that you need to know are the vertices u and v in the same connected component. It is guaranteed that each edge of the graph meets in cut operations exactly once.
For each ask operation print in a separate line the word "YES", if two given vertices are in the same connected component, and "NO" otherwise. The order of answers must match the order of ask operations in input data.