Fence

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

문제

Today Tom Sawyer should color the fence again. The fence can be modelled as an infinite straight line. Initially the whole fence was colored white, and should be colored green.

Just as the last time, he decided to do nothing by himself, and to ask his friends to do his job, but this time it wasn't so easy. He has nn friends, the ii-th friend is asked to color the segment \[l_i,r_i]\[l\_i, r\_i], and accepts this proposition with probability p_ip\_i. If a friend accepts, he recolors the whole segment assigned to him, so all white points inside the segment \[l_i,r_i]\[l\_i, r\_i] become green, and all green points become white. All events "the ii-th friend accepts the proposition" are mutually independent. 

Now Tom wants to find the expected length of the green part in the end.

입력

The first line contains an integer nn --- the number of friends (1n1051\leq n\leq 10^5).

Each of the next nn lines contains three integers l_i,r_i,p_il\_i, r\_i, p\_i --- endpoints of the ii-th segment, and the probability of its coloring in percents (0l_i<r_i1090\leq l\_i < r\_i\leq 10^9, 0p_i1000\leq p\_i\leq 100).

출력

Print one real number --- the answer to the problem with absolute or relative error at most 10610^{-6}.