s = input() t = input() print(s[0]+"."+t[0]+".")