P,C = list(map(int,input().split()))
print((41 * P + 49 * C) / 6)