Tires

AtCoder
IDabc224_a
Time2000ms
Memory256MB
Difficulty
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$ [samples]
Samples
Input #1
atcoder
Output #1
er

$S=$"`atcoder`" ends with `er`.
Input #2
tourist
Output #2
ist
Input #3
er
Output #3
er
API Response (JSON)
{
  "problem": {
    "name": "Tires",
    "description": {
      "content": "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`.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc224_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a string $S$ ending with `er` or `ist`.  \nIf $S$ ends with `er`, print `er`; if it ends with `ist`, print `ist`.\n\n## Constraints\n\n*   $2 \\le |S| \\le 20$\n*   $S$ consists of lowercase Eng...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments