gets T=gets.split.map(&:to_i).sum F=gets.to_i puts T-F