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