function Main(input){
  input = input.split(' ');

  var a = 'A';
  var s = input[1];
  var c = 'C';

  var s2 = s.split('')[0];

  console.log(a + s2 + c);


}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));