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