#1456. [ABC224A] Tires
[ABC224A] Tires
题目描述
输入一个字符串 ,如果 的末尾为 er 时输出 er ,如果 的末尾为 ist 时输出 ist 。保证 的末尾为 er 或 ist 中的其中一种。
输入格式
输入一个字符串
输出格式
根据题目要求输出对应的内容。
atcoder
er
tourist
ist
er
er
提示
- ,其中 的含义为字符串的长度。
输入一个字符串 s ,如果 s 的末尾为 er 时输出 er ,如果 s 的末尾为 ist 时输出 ist 。保证 s 的末尾为 er 或 ist 中的其中一种。
输入一个字符串 s
根据题目要求输出对应的内容。
atcoder
er
tourist
ist
er
er