def capitalize(string):
    return ([str.capitalize() for str in string.split(' ')])


if __name__ == '__main__':
    string = input()
    capitalized_string = capitalize(string)
    print(capitalized_string)