from collections import defaultdict





def main():

    S = eval(input())

    print(("A{0}C".format(S.split()[1][0])))





if __name__ == '__main__':

    main()

from collections import defaultdict





def main():

    print(("A{0}C".format(input().split()[1][0])))





if __name__ == '__main__':

    main()

from collections import defaultdict


def main():
    S = eval(input())
    print(("A{0}C".format(S.split()[1][0])))


if __name__ == "__main__":
    main()

from collections import defaultdict


def main():
    print(("A{0}C".format(input().split()[1][0])))


if __name__ == "__main__":
    main()

-    S = eval(input()) -    print(("A{0}C".format(S.split()[1][0]))) +    print(("A{0}C".format(input().split()[1][0])))