while 1: r='';n=17 for c in raw_input():n-=c>' ';r+=(c*99).title()[n] print r