b1,b2,f_n = gets.chomp.split(" ").map(&:to_i) puts b1 * b2 - gets.chomp.split(" ").map(&:to_i).inject(&:+)