Last Letter

AtCoder
IDabc244_a
Time2000ms
Memory256MB
Difficulty
Given a string $S$ of length $N$ consisting of lowercase English alphabets, print the last character of $S$. ## Constraints * $N$ is an integer. * $1 ≤ N ≤ 1000$ * $S$ is a string of length $N$ consisting of lowercase English alphabets. ## Input Input is given from Standard Input in the following format: $N$ $S$ [samples]
Samples
Input #1
5
abcde
Output #1
e

The last character of $S = {}$`abcde` is `e`, so `e` should be printed.
Input #2
1
a
Output #2
a
API Response (JSON)
{
  "problem": {
    "name": "Last Letter",
    "description": {
      "content": "Given a string $S$ of length $N$ consisting of lowercase English alphabets, print the last character of $S$.",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc244_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Given a string $S$ of length $N$ consisting of lowercase English alphabets, print the last character of $S$.\n\n## Constraints\n\n*   $N$ is an integer.\n*   $1 ≤ N ≤ 1000$\n*   $S$ is a string of length $N...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments