from math import pi C = int(input()) R1, R2 = map(int, input().split()) print(((R2 - R1) / 2)**2 * pi * (R1 + R2) * pi * C)