Mixture (Large)

No attempts yetTime limit1sMemory limit256 MB

Problem

A research lab worked out how to make two substances that nobody had made before, A and B. Whether they can really be produced is not the question here. Both are made by mixing NN materials M1,M2,,MNM_1, M_2, \dots, M_N in fixed proportions. One gram of A is worth XX, and one gram of B is worth YY.

Making 1 g of A uses GAiGA_i g of MiM_i, and making 1 g of B uses GBiGB_i g of MiM_i. Every material is rare, and only WiW_i g of MiM_i is left. A and B may be produced in any nonnegative real number of grams, not only whole grams.

Write a program that finds the largest value obtainable from the remaining materials, and how many grams of A and how many grams of B reach that value.

Input

The first line contains NN, XX, and YY.

The second line contains GA1,GA2,,GANGA_1, GA_2, \dots, GA_N, the third line contains GB1,GB2,,GBNGB_1, GB_2, \dots, GB_N, and the fourth line contains W1,W2,,WNW_1, W_2, \dots, W_N.

1N2000001 \le N \le 200\,000. Every number other than NN is a natural number between 11 and 10000001\,000\,000.

Output

Print the largest obtainable value on the first line.

Print how many grams of A and how many grams of B to make on the second line, separated by a space.

Round all three exact values to two digits after the decimal point. Round up when the discarded part is exactly half. For example, print 250000.13250000.13 when the exact value is 250000.125250000.125.

If several plans reach the largest value, print the one that makes the least A.