puts "Test start"

puts "Create thread"

num_max = 28

syusseki = Array.new
i = 0

while line = gets.chomp.to_i
  syusseki[i] = line
  i += 1

  if i > num_max then
    break
  end
end

k = 0
j = 1
absence = Array.new
while j <= 30
  i = 0
  findflg = false
  while i <= num_max
    if syusseki[i] == j then
      findflg = true
      break
    end
    i += 1
  end
  
  if findflg != true then
    absence[k] = j
    k += 1
  end
  j += 1
 
end

puts "anser"
puts absence

puts "Test compleated"