Changing a Character

AtCoder
IDabc126_a
Time2000ms
Memory256MB
Difficulty
You are given a string $S$ of length $N$ consisting of `A`, `B` and `C`, and an integer $K$ which is between $1$ and $N$ (inclusive). Print the string $S$ after lowercasing the $K$\-th character in it. ## Constraints * $1 ≤ N ≤ 50$ * $1 ≤ K ≤ N$ * $S$ is a string of length $N$ consisting of `A`, `B` and `C`. ## Input Input is given from Standard Input in the following format: $N$ $K$ $S$ [samples]
Samples
Input #1
3 1
ABC
Output #1
aBC
Input #2
4 3
CABA
Output #2
CAbA
API Response (JSON)
{
  "problem": {
    "name": "Changing a Character",
    "description": {
      "content": "You are given a string $S$ of length $N$ consisting of `A`, `B` and `C`, and an integer $K$ which is between $1$ and $N$ (inclusive). Print the string $S$ after lowercasing the $K$\\-th character in it",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc126_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a string $S$ of length $N$ consisting of `A`, `B` and `C`, and an integer $K$ which is between $1$ and $N$ (inclusive). Print the string $S$ after lowercasing the $K$\\-th character in it...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments