G. 练70.3 删除单词后缀

    Type: Default 1000ms 128MiB

练70.3 删除单词后缀

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

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

20251206 B班作业(9 & 10)

Not Claimed
Status
Done
Problem
7
Open Since
2025-12-7 0:00
Deadline
2025-12-14 23:59
Extension
24 hour(s)