Given a linked list, you are asked to execute q queries on it. There are 2 types of queries:
print - the program should print the linked list
insert k x - the program should insert a new node with value x after the k-th node in the linked list
Input
The first line of the input contains a single integer q (1 ≤ q ≤ 1000).
The next q lines contain the queries - print in case the program should print the linked list, and insert k x if the program should insert a new node with value x ( ≤ x ≤ ) after the k-th node (0 ≤ k ≤ |L|).
Output
The program should correctly print the values in the linked list for all the print queries. The values should be separated by spaces.