import java.util.Scanner;
public class UpperWord {
public static void main(String... args){
Scanner scan=new Scanner(System.in);
//String test=scan.toString();
while(scan.hasNext())
{
//System.out.println(scan.next());
for (String str :scan.next().split(" "))
{
str=Character.toUpperCase(str.charAt(0))+str.substring(1, str.length());
System.out.print(str+" ");
}
}
System.out.println();
}
"".toUpperCase()