#include <stdio.h>
#include <ctype.h>

int main() {
    char str [5101];
    fgets(str,sizeof(str),stdin); //主要是scanf遇到空格就停止了

    int i=0;
    printf("%c",toupper(str [0]));
    i++;
    while(str [i]!='\0'){
        if(str [i]==' '){
            printf("%c",toupper(str [i+1]));
        }
        i++;
    }
    return 0;
}