n = gets.to_i a = 1 c = 0 while a