from decimal import *
from math import pi
a, b = map(float, input().split())
print(-8.245+6.807*a+7.073*b*2*pi)