import math n = int(input()) r1,r2 =map(int,input().split()) print((math.pi*(r2-r1)/2)**2*(r1+r2)*n)