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