# S = 8.245 + 6.807 * H + 7.073 * FFC h, r = map(float, input().split()) ans = 8.245 + 6.807 * h + 7.073 * r print('{:.15f}'.format(ans))