import random
n=int(input())
b=input()
random.seed(b)
for x in range(n):
keySn = []
for i in range(5):
s = ''
characters = 'BCEFGHJKMPQRTVWXY2346789'
for i in range(5):
s = s + random.choice(characters)
keySn.append(s)
key = '-'.join(keySn)
print(key)