#abc224a. A - Tires

A - Tires

Score : 100100 points

问题描述

给定一个以 erist 结尾的字符串 SS

如果 SSer 结尾,则输出 er;如果以 ist 结尾,则输出 ist

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

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

Constraints

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

Input

Input is given from Standard Input in the following format:

SS

Output

Print the answer.

Sample Input 1

atcoder

Sample Output 1

er

S=S="atcoder" ends with er.

Sample Input 2

tourist

Sample Output 2

ist

Sample Input 3

er

Sample Output 3

er

update @ 2024/3/10 09:50:34