a=gets.split.map(&:to_i) puts (Array(1..10) - a).flatten