#P411. 练70.3 删除单词后缀

练70.3 删除单词后缀

Description

Given a word, if it ends with the suffix erer, lyly, or inging, delete that suffix (it is guaranteed that the word length after deleting the suffix will not be 00); otherwise, make no changes.

Input Format

Input one line containing a word (the word contains no spaces and has maximum length of 3232).

Output Format

Output the word after processing according to the requirements.

Sample

referer
refer