import math C=int(input()) I,O=map(int,input().split()) print((math.pi*(O-I)/2)**2*(I+O)*C)