from typing import List


def print_word(guest_list: List, word: str):
    last_guest = guest_list[-1]
    
    for guest in guest_list:
        if last_guest != guest:
            print(word.format(guest))
        else:
            print(word.format(guest), end="\n\n")


guest_list = ["Niuniu", "Niu Ke Le"]
invite_words = "{0}, do you want to come to my celebration party?"
cele_words = "{0}, thank you for coming to my celebration party!"

print_word(guest_list, invite_words)
guest_list.insert(0, "GURR")
index = 0

for new_guest in guest_list:
    if new_guest == "Niu Ke Le":
        index = guest_list.index(new_guest)

guest_list.insert(index, "Niumei")
guest_list.append("LOLO")

print_word(guest_list, cele_words)