def score(n, k) return 50 * n + ((50 * n) / (0.8 + 0.2 * k)).floor end n, k = STDIN.gets.chomp.split.map{|x| Integer(x)} puts score(n, k)