ans = 0 for i in range(int(input())): x, a = map(float,input().split()) ans += a * 355/113 print(ans)