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