input_str = input()
first_character = input_str[0]
print(input_str.replace(first_character, first_character.upper(), 1))

input_str = input()
first_character = input_str[0]
print(input_str.replace(first_character, first_character.upper(), 1))
