ls=input().split()

Ls=[]

def fun():

     print('111')

     print('222')

     print('333')

     print('ii')

for i in ls:

     Ls.append(i[0])

print((''.join(Ls)))
def suma(a,b):

  return a+b

def multi(a,b):

  return a*b

def division(a,b):

  if a>0:

    division=a/b

  else:

    division="No se puede dividir"

  return division

s=eval(input())

letra=s[8]

print(("A{}C".format(letra)))
ls = input().split()
Ls = []


def fun():
    print("111")
    print("222")
    print("333")
    print("ii")


for i in ls:
    Ls.append(i[0])
print(("".join(Ls)))

def suma(a, b):
    return a + b


def multi(a, b):
    return a * b


def division(a, b):
    if a > 0:
        division = a / b
    else:
        division = "No se puede dividir"
    return division


s = eval(input())
letra = s[8]
print(("A{}C".format(letra)))

-ls = input().split() -Ls = [] +def suma(a, b): +    return a + b -def fun(): -    print("111") -    print("222") -    print("333") -    print("ii") +def multi(a, b): +    return a * b -for i in ls: -    Ls.append(i[0]) -print(("".join(Ls))) +def division(a, b): +    if a > 0: +        division = a / b +    else: +        division = "No se puede dividir" +    return division + + +s = eval(input()) +letra = s[8] +print(("A{}C".format(letra)))