1024: 字符串截取

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:4 Solved:3

Description

编程实现:输入一个字符串,如果该字符串以 er, ly 或者ing后缀结尾的, 则删除该字符串后缀的字符串,否则将原字符串输出。

Input

输入一个字符串

Sample Input Copy

Earing

Sample Output Copy

Ear

Source/Category