A - Tires
Editorial
/
Time Limit: 2 sec / Memory Limit: 1024 MB
配点 : 100 点
問題文
末尾が er
または ist
であるような文字列 S が与えられます。
S の末尾が er
である場合は er
を、 ist
である場合は ist
を出力してください。
制約
- 2 \le |S| \le 20
- S は英小文字のみからなる。
- S の末尾は
er
またはist
である。
入力
入力は以下の形式で標準入力から与えられる。
S
出力
答えを出力せよ。
入力例 1
atcoder
出力例 1
er
S="atcoder
" の末尾は er
です。
入力例 2
tourist
出力例 2
ist
入力例 3
er
出力例 3
er
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
orist
.
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