n,k = gets.split.map &:to_i a = 50r * n + (50r * n / (4/5r + 1/5r * k)).floor p a.to_i