#include <bits/stdc++.h>
using namespace std;
int main()
{
string s;
getline(cin,s);
int l=s.size();
if((s[l-1]=='r'&&s[l-2]=='e')||(s[l-1]=='y'&&s[l-2]=='l'))
{
s.erase(l-2,l-1);
}
if(s[l-1]=='g'&&s[l-2]=='n'&&s[l-3]=='i')
{
s.erase(l-3,l-1);
}
cout<<s;
return 0;
}
12-18
293
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-17
573
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交