parseInt(x) = parse(Int, x)
parseMap(x::Array{SubString{String},1}) = map(parseInt, x)

function flush(a::Array{Int,1},n)
	for i in 1:n
		print(Char(a[i]+97))
	end
	println("")
end

function main()
	n = readline() |> parseInt
	a = zeros(Int,26)
	while 1==1
		if a[1]==1
			break
		end
		flush(a,n)
		a[n]+=1
		for i in n:-1:2
			if a[i]>=i
				a[i-1]+=1
				a[i]=a[i]%i
			end
		end
	end
end

main()