import sys,re for l in sys.stdin: x=re.split('([A-Z]+)',l);print x[0]+''.join(map(lambda x:x.title(),x[1:])),