from string import uppercase as s
_=22;__=s[_]+s[_/5]+s[_]+s[_/2]+s[_-_]+s[_/7]
for _ in __:print _,
print
for _ in __[1:]:print _