print(input()[0]+".",end="") print(input()[0]+".")