N = gets.to_i cur = 'a' ans = [] chars = [*?a..?z] - ['n'] chars.permutation(5).take(N - 1).each do |list| str = 'a' + list.join + 'a' ans << str end ans << 'an' puts ans