import math N=int(input()) ans=0 for i in range(N): x,a=map(float,input().split()) ans+=a*math.pi print(ans)