n = gets.to_i
h = Hash.new(0)
filled = 0
k = 0
done = false
n.times do
  x = gets.to_i

  if done
    puts 'No'
    next
  end

  if x < filled
    puts 'No'
    next
  end

  if x == filled
    if filled == k
      puts 'Yes'
      done = true
    else
      puts 'No'
    end
    next
  end

  puts 'Yes'
  k += 1
  h[x] += 1
  if x == filled + 1
    x += 1 until h[x] == 0
    filled = x - 1
  else
    until h[x] == 1
      h[x] = 0 
      k -= 1
      h[x -= 1] += 1
    end
    filled += 1 if x == filled + 1
  end
end

