import math P=math.pi #print(P) C=int(input()) if C==0: print(0) exit() In,Out=map(int,input().split()) r = (Out - In)/2 R = Out - r Size=(r**2)*R*2*(P**2) print(Size/C)