S = input() T = input() ans = "{}.{}.".format(S[0], T[0]) print(ans)