s = input() t = input() f = s[0] l = t[0] print(f'{f}.{l}.')