read_line.to_i.times do n = read_line.to_i puts n == 1 ? 1 : 0 end