for s in open(0): n=17 for c in s:n-=c>' ';print(end=(c*99).title()[n])