from math import pi C, Rin, Rout = map(int, open(0).read().split()) S = (Rout + Rin) * (Rout - Rin) ** 2 * pi * pi / 4 print(C * S)