Mani is a savvy investor. He is reviewing his financial investment performance. He is currently analyzing his investment into mutual funds he had made in the past. From those funds he earned a certain amount each. Coincidentally, it so happened that all the funds that Mani had invested in, had in turn invested the funds in same set of stocks. So when he exited, he exited all Mutual Funds at the same time. Mani has past statements from each Fund which tell him about the number of holdings of each stock and the value of the entire portfolio when he exited those funds.
Mani is now curious to find out what was the price of each stock across all funds when he exited. He wants to do this to find out if his decision to exit the funds based on today's price was right or wrong. Your task is to help Mani find stock prices when he exited them.
Compute stock prices up to 11 decimal places and print them up to 2 decimal places.
Let's say all funds invested in TCS, Infy and Wipro, then Mani has the following knowledge
Fund 1 -> # of shares of TCS, Infy and Wipro each and overall value of Mani's portfolio
Fund 2 -> # of shares of TCS, Infy and Wipro each and overall value of Mani's portfolio
Fund 3 -> # of shares of TCS, Infy and Wipro each and overall value of Mani's portfolio
First line contains a single number N which denotes two things
Number of stocks in each mutual fund
Number of funds is also same as N
Next N lines, each contain a tuple representing two things
The quantities of each of the N stocks in the fund, delimited by space
The value of the holdings in that fund
Refer Sample Input for better understanding
Print price of each stock, upto 2 decimal point, on one line (first one on first line, second one on second line ... Nth one on Nth line). First stock is the one that comes first in the first tuple. Second stock is the one that comes second in the first tuple. So on and so forth.
Print "Unsolvable" if the values of individual stocks cannot be calculated.