# str = list(raw_input()) N = len(str) ''.isspace() for i in range(N-1): if str[i].isalpha(): str[i] = str[i].upper() break for i in range(1,N): if str[i].isalpha() and str[i-1].isspace(): str[i] = str[i].upper() print ''.join(str)