#abc244a. A - Last Letter

A - Last Letter

Score : 100100 points

问题描述

给定一个长度为 NN 的由小写英文字母组成的字符串 SS,打印出 SS 的最后一个字符。

以上为通义千问 qwen-max 翻译,仅供参考。

Problem Statement

Given a string SS of length NN consisting of lowercase English alphabets, print the last character of SS.

Constraints

  • NN is an integer.
  • 1N10001 ≤ N ≤ 1000
  • SS is a string of length NN consisting of lowercase English alphabets.

Input

Input is given from Standard Input in the following format:

NN

SS

Output

Print the last character of SS.

Sample Input 1

5
abcde

Sample Output 1

e

The last character of S=S = {}abcde is e, so e should be printed.

Sample Input 2

1
a

Sample Output 2

a

update @ 2024/3/10 10:28:21