print(input()[0] + "." + input()[0] + ".")