Q1> Given a fixed volume of cylinder find all the possible combination of radius and height from the given input array.

Volume of cylinder is pi*r^2*h where pi will be 22/7

First input will be n.

Next line contains n elements of array

Next line contains volume of cylinder

Output

In each line print “R H” where R is radius , H is height found.

Input

3

1 2 7

22

Output

1 7