pi=3.141592653589793238 c=int(input()) r,R=map(int,input().split()) print(c*2*pi*((R+r)/2)*pi*(((R-r)/2)**2))