def solution(s):
    s = s.lower()
    changed_words = []
    print(s.split(' '))
    for word in s.split(' '):
        if (len(word) == 0):
            changed_words.append(word)
            continue
        elif (len(word) == 1):
            word = word[0].upper()
        else:
            word = (word[0].upper() + word[1:])
        changed_words.append(word)
    print(changed_words)
    answer = ' '.join(changed_words)
    return answer
def solution(s):
    s = s.lower()
    changed_words = []
    print(s.split(' '))
    for word in s.split(' '):
        if (len(word) == 0):
            changed_words.append(word)
            continue
        elif (len(word) == 1):
            word = word[0].upper()
        else:
            word = (word[0].upper() + word[1:])
        changed_words.append(word)
    print(changed_words)
    answer = ' '.join(changed_words)
    return answer