n=gets.to_i a,b,c=gets.split(" ").map{|e| e.to_i} if a+n-c