n = gets.chomp.split.map(&:to_i) m = gets.chomp.split.map(&:to_i).inject(:+) a = n[0] * n [1] - m puts "-1"if a < 0 p a if a >= 0