public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String s = reader.readLine();

        String[] strings = s.trim().split("\\s+");
        for (String str: strings){
            str = str.substring(0, 1).toUpperCase() + str.substring(1);
            System.out.println(str);
        }
        //write your code here
    }