There are black points on coordinate plane. The
-th black point(they're numbered in 1-based) is on
in the beginning.
Then events happens. There are two types of event:
In the end, output y-coordinates of all the black points.
The first line contains two integers and
– the number of black points and the number of events.
Then lines follow. The
-th line contains an integer
– the type of the
-th event. If
is equal to 1, then two integers
and
follow(the
-th point must exist on coordinate plane). Otherwise three integers
and
follow.
It's guaranteed that:
After the events, output y-coordinates of all the black points and print a newline('\n') character. If some black point doesn't exist, output -1 instead of its y-coordinate.