import math h, r = map(float, input().split()) pi = math.pi print(-8.245+6.807*h+7.073*2*pi*r)