'''
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")
    for w in f:
        w = w.strip()
        print w, pluralize(w)