S = input() T = input() print(f"{S[0]}.{T[0]}.")