Two linear particle accelerators **A** and **B**, placed opposite to each other at a distance apart, are propelling elementary particles. **A** is shooting **x-particles**, while **B** is shooting **y-particles.** The two kinds of particles are flying one opposing the other, and when an **x-particle** meets a **y-particle**, they collide and annihilate. One should be aware that an x particle could overtake other x-particles, as well as a y-particle could overtake other y-particles without any consequences for the particles.
Like so, in a given moment of time, which we assume to be zero, a shooting of **x-particles** and **y-particles** starts from the two accelerators. Each particle moves with its own constant speed. The particles are numbered in the order of their shooting from to , this holds true for both the x-particles and the y-particles.
Remark: For time , a particle with speed travels distance s = vt.
The shooting time moments for the **x-particles** are 0 = t_{x_1} < t_{x_2} < t_{x_3} < \ldots < t_{x_N}, and their speeds are v_{x_1}, v_{x_2}, v_{x_3}, ..., v_{x_N}.
Correspondingly, for the y-particles the moments are denoted by 0 = t_{y_1} < t_{y_2} < t_{y_3} < \ldots < t_{y_N}, and their speeds by v_{y_1}, v_{y_2}, v_{y_3}, ..., v_{y_N}.
The shooting is executed in a way to guarantee the fulfillment of the following conditions:
- Each particle will collide a particle of the opposite type; - When two particles collide, all other particles will be at a distance greater than or equal to from the collision point. This is guarantee for the first collisions.
Write a program particles to determine the first collisions between particles of the two kinds.
The three space separated positive integers (1 \le N \le 50000), (1 \le L \le 10^9), and (1 \le K \le 100) are read from the first line of the standard input.
The following lines contain two space separated non-negative integers t_{x_i} (0 \le t_{x_i} \le 10^9) and v_{x_i} (1 \le v_{x_i} \le 10^9) each: the shooting moment and the speed of the corresponding x-particle.
The last input lines contain, respectively, each the shooting moment t_{y_i} (0 \le t_{y_i} \le 10^9) and the speed v_{y_i} (1 \le v_{y_i} \le 10^9) of the corresponding y-particle in the same format.
The program must print to the standard output lines, each containing two space separated positive integers: the numbers of the **x-particle** and **y-particle**, which are involved in the corresponding collision.
Lines are output increasingly by the order of collisions – from the first one to the th.
Example 1