'''
Created on Jan 24, 2017

@author: Susan
'''
def pluralize(word):
    ret = word + "s"
    if word.endswith("ch"):
        ret = word + "es"
    if word.endswith("x"):
        ret = word + "es"
    if word.endswith("f"):
        ret = word[:-1] + "ves"
    if word.endswith("y"):
        ret = word[:-1] + "ies"
    return ret
        
if __name__ == "__main__":
    f = open("words.txt")
    all = f.read()
    wordlist = all.split();
    #note that wordlist is ["phone","book","baby","punch","fox","elf","country","sun"]
    for w in wordlist:
        print w, pluralize(w)