function Main(input) {
  input = input.split("\n");
  var n = input[0].split(" ");
  var x = n[1].slice(0,1);
  var ans = "A" + x + "C";
  console.log('%s', ans);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));