# パップスギュルダンの定理:V=2πgxS=(重心の移動距離) ×S を使うと # ドーナツを輪切りにした時の円の面積 ×重心の移動距離 で求めれそう。 # πを使うために、import mathを行うのも必要そう。 import math C = int(input()) Rin, Rout = map(int, input().split()) #円の面積S(m^2)を求める。 S = math.pi * ((Rout - Rin)/2) * ((Rout - Rin)/2) #重心の移動距離L(m)を求める。 L = 2 * math.pi * ( Rin + (Rout - Rin)/2) #これらをパップスギュルダンの定理に当てはめた体積(m^3)に、C(kcal / m^3)をかけると、 print(C * S * L)