Cakes

아직 제출이 없습니다시간 제한3초메모리 제한512 MB

문제

Malfoy has got nn cakes as a present for his birthday party. He has decided that he wants to share these cakes with his friends Crabbe and Goyle. At the same time he doesn't want to share his birthday present with other Slytherins. So, now they want to eat all these cakes as soon as possible, so that others don't notice anything.

It is known that it takes Malfoy a_ia\_i seconds to eat ii-th cake. Also, it takes Crabbe b_ib\_i seconds to eat ii-th cake. Finally, it takes Goyle c_ic\_i seconds to eat ii-th cake. They can divide each cake into several parts: the time it takes to eat a part is proportional to the size of the part. Surely, they are going to eat cakes simultaneously. Can you find the minimum time required to eat all nn cakes?

입력

The first line contains a single integer nn: the number of cakes (1n51041 \le n \le 5 \cdot 10^4).

The second line contains nn integers a_1a\_1, \ldots, a_na\_n.

The third line contains nn integers b_1b\_1, \ldots, b_nb\_n.

The fourth line contains nn integers c_1c\_1, \ldots, c_nc\_n.

It is guaranteed that 1a_i,b_i,c_i1001 \le a\_i, b\_i, c\_i \le 100.

출력

You should print one number: the minimum time it takes Malfoy, Crabbe and Goyle to eat all nn cakes. Your answer will be accepted if its absolute or relative error does not exceed 10610^{-6}.