def score(a, b) ue = 50 * a sita = (0.8 + (0.2 * b)).floor x = ue / sita point = (50 * a) + x return point end A,B=gets.split.map(&:to_i) ans = score(A, B) print ans