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