Gyeonggeun plays a web game where he fights monsters, and he has collected N attack abilities. To keep track of them he numbered the abilities 1 through N.
Ability i has a trigger probability pi and a damage value di. When Gyeonggeun issues a trigger command to ability i, the ability triggers with probability pi and deals di damage to the opponent, and with probability 1−pi nothing happens.
Gyeonggeun can now equip and unequip abilities freely. Whenever he gets one attack, the equipped abilities go through this process.
Given the trigger probability and the damage of the N abilities, find the expected damage of one attack when the abilities are equipped so that this expected damage is as large as possible.
The first line has an integer N (1≤N≤20). The i-th of the next N lines has two integers pi and di (1≤pi,di≤100), separated by a space. Ability i triggers with probability pi percent, that is pi/100, and deals di damage to the opponent.
Print on one line the maximum expected damage over all ways of equipping the abilities, rounded to six digits after the decimal point. Print all six digits even when the value is an integer.
Equipping more abilities is not always better. An ability that always triggers but deals little damage ends the attack the moment it is picked, which lowers the expected damage.