import numpy as np n = int(input()) l = np.array([list(map(float, input().split())) for i in range(n)]).T print(np.pi * l[1].sum())