Keyboard

AtCoder
IDhhkb2020_a
Time2000ms
Memory256MB
Difficulty
Given are a character $S$, which is `Y` or `N`, and another character $T$, which is `A`, `B`, or `C`. If $S$ is `Y`, print $T$ uppercased. If $S$ is `N`, print $T$ as it is. ## Constraints * $S$ is `Y` or `N`. * $T$ is `a`, `b`, or `c`. ## Input Input is given from Standard Input in the following format: $S$ $T$ [samples]
Samples
Input #1
Y
a
Output #1
A

Since $S$ is `Y`, we should print $T$ - which is `a` - uppercased, that is, `A`.
Input #2
N
b
Output #2
b

Since $S$ is `Y`, we should print $T$ - which is `b` - as it is.
API Response (JSON)
{
  "problem": {
    "name": "Keyboard",
    "description": {
      "content": "Given are a character $S$, which is `Y` or `N`, and another character $T$, which is `A`, `B`, or `C`. If $S$ is `Y`, print $T$ uppercased. If $S$ is `N`, print $T$ as it is.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "hhkb2020_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Given are a character $S$, which is `Y` or `N`, and another character $T$, which is `A`, `B`, or `C`.\nIf $S$ is `Y`, print $T$ uppercased.\nIf $S$ is `N`, print $T$ as it is.\n\n## Constraints\n\n*   $S$ i...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments