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