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