while~0: i=0;s="" for c in raw_input():i+=c>" ";s+=(c,c.upper())[i==17] print s