#include<stdio.h>
int main()
{
    char s1[10],s2[10],s3[10],a,b,c;
    int i=0;

    scanf("%s%s%s", &s1,&s2,&s3);

    a=s1[i];
    b=s2[i];
    c=s3[i];

      a=toupper(a);
      b=toupper(b);
      c=toupper(c);
    printf("%c%c%c", a,b,c);
    return 0;

}
