#Z15313. 删除单词后缀

删除单词后缀

Description

Given a word, if the word ends with the suffix er, ly, or ing, remove that suffix (it is guaranteed that the length of the word after removing the suffix will not be 0). Otherwise, no action is taken.

Input Format

Input consists of one line containing a word (there are no spaces in the word, and the maximum length of the word is 32).

Output Format

Output the word after processing it according to the given requirements.

referer

refer