import numpy as np c = int(input()) r, R = map(int,input().split()) pi = np.pi v = pi * (r+R) * (((R-r)/2)**2) * pi print(c*v)