Pavel loves the game Fakes and Shidget very much. The game literally consists of the following process. The player uniformly randomly meets one of n characters. Every character offers the player to choose one of two quests. The first quest of the i-th character requires a_i minutes to complete and brings b_i gold, and the second quest requires c_i minutes and brings d_i gold. The player chooses one of these quests, completes it and immediately meets another random character, and so on.
Pavel will play this game infinitely long. How fast can he earn gold if he will play optimally?
More formally, let t is the time Pavel plays this game, and g(t) is the amount of gold he earns for the time t. You should find the limit lim_t→∞tg(t).
The first line contains an integer n (1≤n≤200000) --- the number of characters in the game.
Each of the next n lines contains four integers a_i, b_i, c_i and d_i (1≤a_i,b_i,c_i,d_i≤109) --- the duration of the first quest, the reward for the first quest, the duration of the second quest, the reward for the second quest of the i-th character.
Output one floating point number --- the maximal possible speed of earning gold.
The absolute or relative error of the answer shouldn't exceed 10−9.