def main():
    first = raw_input("Enter the first name: ")
    middle = raw_input("Enter the middle name: ")
    last = raw_input("Enter the last name: ")
    print first[0:1] + '.' + middle[0:1] + '.' + last[0:1]
main()