"use strict";
    
const main = arg => {
    const S = arg.split("\n")[0].split(" ").map(n=>n.toUpperCase());
    console.log(S[0].split("")[0] + S[1].split("")[0] + S[2].split("")[0]);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));