import math C = int(raw_input()) Ri,Ro = map(int,raw_input().split()) r = (Ro - Ri)*1.0 / 2 ans = r * r * math.pi * (r + Ri)*2 * math.pi print ans