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