import math C=int(input()) r,R=map(int,input().split()) print((math.pi*(R-r)/2)**2*C*(R+r))