#P411. 练70.3 删除单词后缀
练70.3 删除单词后缀
Description
Given a word, if it ends with the suffix , , or , delete that suffix (it is guaranteed that the word length after deleting the suffix will not be ); otherwise, make no changes.
Input Format
Input one line containing a word (the word contains no spaces and has maximum length of ).
Output Format
Output the word after processing according to the requirements.
Sample
refererrefer
Related
In following homework: