102240: [AtCoder]ABC224 A - Tires

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:2 Solved:0

Description

Score : $100$ points

Problem Statement

You are given a string $S$ ending with er or ist.
If $S$ ends with er, print er; if it ends with ist, print ist.

Constraints

  • $2 \le |S| \le 20$
  • $S$ consists of lowercase English letters.
  • $S$ ends with er or ist.

Input

Input is given from Standard Input in the following format:

$S$

Output

Print the answer.


Sample Input 1

atcoder

Sample Output 1

er

$S=$"atcoder" ends with er.


Sample Input 2

tourist

Sample Output 2

ist

Sample Input 3

er

Sample Output 3

er

Input

题意翻译

输入一个字符串 $s$ ,在 $s$ 的末尾为 er 时输出 er ,在 $s$ 的末尾为 ist 时输出 ist 。保证 $s$ 的末尾为 er 或 ist 中的其中一种。

Output

得分:100分 部分 问题描述 你将得到一个以`er`或`ist`结尾的字符串$S$。 如果$S$以`er`结尾,打印`er`;如果以`ist`结尾,打印`ist`。 部分 约束条件 * $2 \le |S| \le 20$ * $S$由小写英文字母组成。 * $S$以`er`或`ist`结尾。 --- 部分 输入 输入将以以下格式从标准输入给出: $S$ 部分 输出 打印答案。 --- 部分 样例输入1 ``` atcoder ``` 部分 样例输出1 ``` er ``` $S$以`er`结尾。 --- 部分 样例输入2 ``` tourist ``` 部分 样例输出2 ``` ist ``` $S$以`ist`结尾。 --- 部分 样例输入3 ``` er ``` 部分 样例输出3 ``` er ```

加入题单

算法标签: