import math hf, rf = map(float, input().split()) s = -8.245 + 6.807 * hf + 7.073 * rf * math.tau print('{:.30g}'.format(s))