def CapitalizeFirstLetter(s):
    '''
    Function to capitalize first letter of all the words in a sentence passed as string.
    '''
    words = s.split(" ")
    cap_words = []
    for word in words:
        cap_words.append(word.capitalize())
    s = " ".join(cap_words)
    return s

if __name__ == "__main__":
    s = input()
    print(CapitalizeFirstLetter(s))

799de42bca2f345846ef4010a54939aca561b956
<mask token>

def CapitalizeFirstLetter(s):
    """
    Function to capitalize first letter of all the words in a sentence passed as string.
    """
    words = s.split(' ')
    cap_words = []
    for word in words:
        cap_words.append(word.capitalize())
    s = ' '.join(cap_words)
    return s


<mask token>

def CapitalizeFirstLetter(s):
    """
    Function to capitalize first letter of all the words in a sentence passed as string.
    """
    words = s.split(' ')
    cap_words = []
    for word in words:
        cap_words.append(word.capitalize())
    s = ' '.join(cap_words)
    return s


if __name__ == '__main__':
    s = input()
    print(CapitalizeFirstLetter(s))

def CapitalizeFirstLetter(s):
    '''
    Function to capitalize first letter of all the words in a sentence passed as string.
    '''
    words = s.split(" ")
    cap_words = []
    for word in words:
        cap_words.append(word.capitalize())
    s = " ".join(cap_words)
    return s

if __name__ == "__main__":
    s = input()
    print(CapitalizeFirstLetter(s))
