202<s>3</s>

AtCoder
IDabc335_a
Time2000ms
Memory256MB
Difficulty
You are given a string $S$ consisting of lowercase English letters and digits. $S$ is guaranteed to end with `2023`. Change the last character of $S$ to `4` and print the modified string. ## Constraints * $S$ is a string of length between $4$ and $100$, inclusive, consisting of lowercase English letters and digits. * $S$ ends with `2023`. ## Input The input is given from Standard Input in the following format: $S$ [samples]
Samples
Input #1
hello2023
Output #1
hello2024

Changing the last character of `hello2023` to `4` yields `hello2024`.
Input #2
worldtourfinals2023
Output #2
worldtourfinals2024
Input #3
2023
Output #3
2024

$S$ is guaranteed to end with `2023`, possibly being `2023` itself.
Input #4
20232023
Output #4
20232024
API Response (JSON)
{
  "problem": {
    "name": "202<s>3</s>",
    "description": {
      "content": "You are given a string $S$ consisting of lowercase English letters and digits.   $S$ is guaranteed to end with `2023`.   Change the last character of $S$ to `4` and print the modified string.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc335_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a string $S$ consisting of lowercase English letters and digits.  \n$S$ is guaranteed to end with `2023`.  \nChange the last character of $S$ to `4` and print the modified string.\n\n## Cons...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments