a=65
for i in range(65,90):
    print(chr(i),end=(''))
print('\n')
for c in range(90,65-1,-1):
    print(chr(c),end=(''))
print('\n')
for d in range(97,123):
    print(chr(d),end=(''))
print('\n')
for e in range(122,97-1,-1):
    print(chr(e),end=(''))
print('\n')

