import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
Scanner sc= new Scanner(System.in);
String a=sc.nextLine();
String[] s=a.split(" ");
String m=" ";
for(int i=0;i<s.length;i++) {
String s1=s[i].substring(0, 1).toUpperCase()+s[i].substring(1).toLowerCase();
m=m+s1+" ";
}
System.out.print(m.trim());
} }