while 1: a,b,c=raw_input().split();s="" while a<=b:s+=a*int(c);a=chr(ord(a)+1) print s