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