시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB21016813980.347%

문제

Usually, the easiest problem in a contest, especially in the practice session, is to find either the minimum integer, the maximum integer, or the sum of a given multiset of integers. We find that such problem is too classical and too boring.

Since this is an ICPC, we are going to pose you with a more challenging problem! Instead of giving you a multiset of integers, we will give you a multiset of real numbers. The ith real number can be represented as a pair of integers (ai, bi) and the value of the number is ai/bi.

ind the minimum number, maximum number, and the sum of the given real numbers!

입력

Input begins with a line containing an integer: N (1 ≤ N ≤ 100 000) representing the size of the given multiset. The next N lines each contains two integers: ai bi (1 ≤ ai, bi ≤ 2 × 109) representing the real numbers.

출력

Output in a line three real numbers (each separated by a single space): the minimum number, the maximum number, and the sum of the given numbers, respectively. Your answer will be considered correct if the relative or absolute difference between your answer and judge’s answer is not more than 10−6.

예제 입력 1

5
1 2
2 4
3 4
4 3
1 5

예제 출력 1

0.20000000000 1.33333333333 3.28333333333