# -*- coding: utf-8 -*-
# @Author: <NAME>
# @Date:   2016-05-06 15:36:04
# @Last Modified by:   <NAME>
# @Last Modified time: 2016-05-06 15:36:08
print ' '.join(map(lambda x: x.capitalize(), raw_input().split(' ')))