In [7]:
def multiple():
    word = input('please input a word: ')
    if word.endswith('x')or word.endswith('s')or word.endswith('ch')or word.endswith('sh'):
        print(word,'es',sep='')
    else:
        print(word,'s',sep='')
        
multiple()


please input a word: apple
apples