#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <ctype.h>



void titlecase(char *s) {
    // TODO: implement this function
    (void) s;
}


int main(void) {
    char s[1000];
    if (fgets(s, sizeof s, stdin) == NULL) { s[0] = '\0'; }
    s[strcspn(s, "\n")] = '\0';
    titlecase(s);
    printf("%s\n", s);
    return 0;
}
