a = gets.chomp.split(" ").map(&:to_i) puts ((1..10).to_a - a)[0]