n = input() ans = 0 mn = 200 for i in range(n): a, p = map(int, raw_input().split(' ')) mn = min(mn, p) ans += a * mn print ans
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "prog.py", line 1, in <module> EOFError: EOF when reading a line