n = gets.to_i
h = gets.split.map(&:to_i)

return puts 'Yes'if n == 1

(0..n-1).each_cons(2) do |i,j|
  if h[i] == h[j]
  elsif h[i] + 1 == h[j]
    h[j] -= 1
  elsif h[i] > h[j]
    puts 'No'
  else
    h[j] -= 1
  end
  puts 'Yes'
end
