a = int(input())
b = [1]*a
c = [1,2,3,4,5,6,7,8,9,10]
d = 0
core = c[0:a]
print("a"*a)
while b != core:
    b[-1] = b[-1] + 1
for i in range(10):
    if  b[-i-1]-1 > b[-i-2]:
        b[-i-2] = b[-i-2] + 1
        b[-i-1] = 1
    else:
        break
answer = ""
for j in range(a):
    answer = answer +chr(b[j]+96)
print(answer)