Nikanor spends all his free time on games. Because of this, he gets bad marks at the university, but that's another story. He also likes gambling. In this problem, we consider the modification of the game called "Orlyanka". There are two players, and each of them has his own coin. Each of the two sides of a coin contains an integer. Players toss their coins, and the winner is the one with the highest number. We can assume that for each coin the probabilities of coming up both sides are equal.
Tonight Nikanor is playing this game with his friends. Nikanor has n friends, and he will play with each of them for a bet of x_i rubles. Fortunately, Nikanor knows that his i-th friend has a coin with the numbers a_i and b_i. If Nikanor wins against his friend, he will receive x_i rubles. Otherwise, he will pay x_i rubles to his friend. If Nikanor and his friend dropped the same value, Nikanor is declared the winner.
Now Nikanor is going to go to the store and buy one coin for all games to maximize his expected profit, taking the coin cost into account. In this shop, a coin with the numbers a and b costs a⋅b rubles. Nikanor can buy any coin with positive integers.
It's so hard for Nikanor to make the right decision... Nikanor asks you to help him choose a coin so that the expected profit is as high as possible.
The first line contains one integer n (1≤n≤2⋅105) denoting the number of friends.
Each of the following n lines contains three integers a_i, b_i, and x_i (1≤a_i,b_i,x_i≤109) representing the numbers on i-th friend's coin and i-th bet in rubles.
Print a single integer --- the maximum expected profit.
Your answer will be considered correct if its absolute or relative error does not exceed 10−6.
Formally, let your answer be a, and the jury's answer be b. Your answer will be accepted if and only if max(1,∣b∣)∣a−b∣≤10−6.