a = gets.split.map(&:to_i)
1.upto(10).each { |x|
  if !a.include? x
    p x
  end
}