while 1:r=raw_input();print''.join(c*int(r[3:])*(r[0]<=c<=r[2])for c in map(chr,range(256)))