#!/usr/bin/env python
# coding: utf-8

# In[ ]:


def getString(d):
    if d==2:
        return "abc"
    if d==3:
        return "def"
    if d==4:
        return "ghi"
    if d==5:
        return "jkl"
    if d==6:
        return "mno"
    if d==7:
        return "pqrs"
    if d==8:
        return "tuv"
    if d==9:
        return "wxyz"
    return

def keypad(n):
    if n==0:
        output=[]
        output.append("")
        return output
    
    smallerNumber=n//10
    lastdigit=n%10
    
    smallerOutput=keypad(smallerNumber)
    optionsForLastDigit=getString(lastdigit)
    
    output=[]
    for s in smallerOutput:
        for c in optionsForLastDigit:
            option=s+c
            output.append(option)
    return output
    

n = int(input())
ans = keypad(n)
for s in ans:
    print(s)


75f6811bb1b11ab368186c91a48e615a3f11bcff
def getString(d):
    if d == 2:
        return 'abc'
    if d == 3:
        return 'def'
    if d == 4:
        return 'ghi'
    if d == 5:
        return 'jkl'
    if d == 6:
        return 'mno'
    if d == 7:
        return 'pqrs'
    if d == 8:
        return 'tuv'
    if d == 9:
        return 'wxyz'
    return


<mask token>

def getString(d):
    if d == 2:
        return 'abc'
    if d == 3:
        return 'def'
    if d == 4:
        return 'ghi'
    if d == 5:
        return 'jkl'
    if d == 6:
        return 'mno'
    if d == 7:
        return 'pqrs'
    if d == 8:
        return 'tuv'
    if d == 9:
        return 'wxyz'
    return


def keypad(n):
    if n == 0:
        output = []
        output.append('')
        return output
    smallerNumber = n // 10
    lastdigit = n % 10
    smallerOutput = keypad(smallerNumber)
    optionsForLastDigit = getString(lastdigit)
    output = []
    for s in smallerOutput:
        for c in optionsForLastDigit:
            option = s + c
            output.append(option)
    return output


<mask token>

def getString(d):
    if d == 2:
        return 'abc'
    if d == 3:
        return 'def'
    if d == 4:
        return 'ghi'
    if d == 5:
        return 'jkl'
    if d == 6:
        return 'mno'
    if d == 7:
        return 'pqrs'
    if d == 8:
        return 'tuv'
    if d == 9:
        return 'wxyz'
    return


def keypad(n):
    if n == 0:
        output = []
        output.append('')
        return output
    smallerNumber = n // 10
    lastdigit = n % 10
    smallerOutput = keypad(smallerNumber)
    optionsForLastDigit = getString(lastdigit)
    output = []
    for s in smallerOutput:
        for c in optionsForLastDigit:
            option = s + c
            output.append(option)
    return output


<mask token>
for s in ans:
    print(s)

def getString(d):
    if d == 2:
        return 'abc'
    if d == 3:
        return 'def'
    if d == 4:
        return 'ghi'
    if d == 5:
        return 'jkl'
    if d == 6:
        return 'mno'
    if d == 7:
        return 'pqrs'
    if d == 8:
        return 'tuv'
    if d == 9:
        return 'wxyz'
    return


def keypad(n):
    if n == 0:
        output = []
        output.append('')
        return output
    smallerNumber = n // 10
    lastdigit = n % 10
    smallerOutput = keypad(smallerNumber)
    optionsForLastDigit = getString(lastdigit)
    output = []
    for s in smallerOutput:
        for c in optionsForLastDigit:
            option = s + c
            output.append(option)
    return output


n = int(input())
ans = keypad(n)
for s in ans:
    print(s)

#!/usr/bin/env python
# coding: utf-8

# In[ ]:


def getString(d):
    if d==2:
        return "abc"
    if d==3:
        return "def"
    if d==4:
        return "ghi"
    if d==5:
        return "jkl"
    if d==6:
        return "mno"
    if d==7:
        return "pqrs"
    if d==8:
        return "tuv"
    if d==9:
        return "wxyz"
    return

def keypad(n):
    if n==0:
        output=[]
        output.append("")
        return output
    
    smallerNumber=n//10
    lastdigit=n%10
    
    smallerOutput=keypad(smallerNumber)
    optionsForLastDigit=getString(lastdigit)
    
    output=[]
    for s in smallerOutput:
        for c in optionsForLastDigit:
            option=s+c
            output.append(option)
    return output
    

n = int(input())
ans = keypad(n)
for s in ans:
    print(s)

