dict1 = {'a': ['apple', 'abandon', 'ant'], 'b': ['banana', 'bee', 'become'], 'c': ['cat', 'come'], 'd': 'down'}

a = input()
if type(dict1[a]) == list:
    for i in dict1[a]:
        print(i, end=" ")
else:
    print(dict1[a])