function Main(a) {
    var words = a.split(" ");
    var answer = "";
    var first = words[0].slice(0,1);
    var second = words[1].slice(0,1);
    var third = words[2].slice(0,1);
    var answer = (first + second + third).toUpperCase();
  	console.log(answer)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));