<gh_stars>0
start = int(input())
stop = int(input())

for i in range (start, stop + 1):
    print (chr(i), end=' ')
start = int(input())
stop = int(input())

for i in range (start, stop + 1):
    print (chr(i), end=' ')