S = input() T = input() ret = S[0] + "." + T[0] + "." print(ret)