import java.util.*;
class Scratch {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String a = in.next();
        String b = in.next();
        String c = in.next();
        System.out.println("A"+b.substring(0,1)+"C");
    }

}