#include <bits/stdc++.h>
using namespace std;

int main(){
  string a,b,c;
  cin >> a >> b >> c;
  if(a.at(0)=='a'){
    cout << "A";
  }
  else if(a.at(0)=='b'){
    cout << "B";
  }
  else if(a.at(0)=='c'){
    cout << "C";
  }
  else if(a.at(0)=='d'){
    cout << "D";
  }
  else if(a.at(0)=='e'){
    cout << "E";
  }
  else if(a.at(0)=='f'){
    cout << "F";
  }
  else if(a.at(0)=='g'){
    cout << "G";
  }
  else if(a.at(0)=='h'){
    cout << "H";
  }
  else if(a.at(0)=='i'){
    cout << "I";
  }
  else if(a.at(0)=='j'){
    cout << "J";
  }
  else if(a.at(0)=='k'){
    cout << "K";
  }
  else if(a.at(0)=='l'){
    cout << "L";
  }
  else if(a.at(0)=='m'){
    cout << "M";
  }
  else if(a.at(0)=='n'){
    cout << "N";
  }
  else if(a.at(0)=='o'){
    cout << "O";
  }
  else if(a.at(0)=='p'){
    cout << "P";
  }
  else if(a.at(0)=='q'){
    cout << "Q";
  }
  else if(a.at(0)=='r'){
    cout << "R";
  }
  else if(a.at(0)=='s'){
    cout << "S";
  }
  else if(a.at(0)=='t'){
    cout << "T";
  }
  else if(a.at(0)=='u'){
    cout << "U";
  }
  else if(a.at(0)=='v'){
    cout << "V";
  }
  else if(a.at(0)=='w'){
    cout << "W";
  }
  else if(a.at(0)=='x'){
    cout << "X";
  }
  else if(a.at(0)=='y'){
    cout << "Y";
  }
  else if(a.at(0)=='z'){
    cout << "Z";
  }
  if(b.at(0)=='a'){
    cout << "A";
  }
  else if(b.at(0)=='b'){
    cout << "B";
  }
  else if(b.at(0)=='c'){
    cout << "C";
  }
  else if(b.at(0)=='d'){
    cout << "D";
  }
  else if(b.at(0)=='e'){
    cout << "E";
  }
  else if(b.at(0)=='f'){
    cout << "F";
  }
  else if(b.at(0)=='g'){
    cout << "G";
  }
  else if(b.at(0)=='h'){
    cout << "H";
  }
  else if(b.at(0)=='i'){
    cout << "I";
  }
  else if(b.at(0)=='j'){
    cout << "J";
  }
  else if(b.at(0)=='k'){
    cout << "K";
  }
  else if(b.at(0)=='l'){
    cout << "L";
  }
  else if(b.at(0)=='m'){
    cout << "M";
  }
  else if(b.at(0)=='n'){
    cout << "N";
  }
  else if(b.at(0)=='o'){
    cout << "O";
  }
  else if(b.at(0)=='p'){
    cout << "P";
  }
  else if(b.at(0)=='q'){
    cout << "Q";
  }
  else if(b.at(0)=='r'){
    cout << "R";
  }
  else if(b.at(0)=='s'){
    cout << "S";
  }
  else if(b.at(0)=='t'){
    cout << "T";
  }
  else if(b.at(0)=='u'){
    cout << "U";
  }
  else if(b.at(0)=='v'){
    cout << "V";
  }
  else if(b.at(0)=='w'){
    cout << "W";
  }
  else if(b.at(0)=='x'){
    cout << "X";
  }
  else if(b.at(0)=='y'){
    cout << "Y";
  }
  else if(b.at(0)=='z'){
    cout << "Z";
  }
  if(c.at(0)=='a'){
    cout << "A" << endl;
  }
  else if(c.at(0)=='b'){
    cout << "B" << endl;
  }
  else if(c.at(0)=='c'){
    cout << "C" << endl;
  }
  else if(c.at(0)=='d'){
    cout << "D" << endl;
  }
  else if(c.at(0)=='e'){
    cout << "E" << endl;
  }
  else if(c.at(0)=='f'){
    cout << "F" << endl;
  }
  else if(c.at(0)=='g'){
    cout << "G" << endl;
  }
  else if(c.at(0)=='h'){
    cout << "H" << endl;
  }
  else if(c.at(0)=='i'){
    cout << "I" << endl;
  }
  else if(c.at(0)=='j'){
    cout << "J" << endl;
  }
  else if(c.at(0)=='k'){
    cout << "K" << endl;
  }
  else if(c.at(0)=='l'){
    cout << "L" << endl;
  }
  else if(c.at(0)=='m'){
    cout << "M" << endl;
  }
  else if(c.at(0)=='n'){
    cout << "N" << endl;
  }
  else if(c.at(0)=='o'){
    cout << "O" << endl;
  }
  else if(c.at(0)=='p'){
    cout << "P" << endl;
  }
  else if(c.at(0)=='q'){
    cout << "Q" << endl;
  }
  else if(c.at(0)=='r'){
    cout << "R" << endl;
  }
  else if(c.at(0)=='s'){
    cout << "S" << endl;
  }
  else if(c.at(0)=='t'){
    cout << "T" << endl;
  }
  else if(c.at(0)=='u'){
    cout << "U" << endl;
  }
  else if(c.at(0)=='v'){
    cout << "V" << endl;
  }
  else if(c.at(0)=='w'){
    cout << "W" << endl;
  }
  else if(c.at(0)=='x'){
    cout << "X" << endl;
  }
  else if(c.at(0)=='y'){
    cout << "Y" << endl;
  }
  else if(c.at(0)=='z'){
    cout << "Z" << endl;
  }
}


Measured memory_bytes: 384