102440: [AtCoder]ABC244 A - Last Letter

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:2 Solved:0

Description

Score : $100$ points

Problem Statement

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$

Output

Print the last character of $S$.


Sample Input 1

5
abcde

Sample Output 1

e

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


Sample Input 2

1
a

Sample Output 2

a

Input

题意翻译

输出长度为 $n$ 的字符串 $s$ 的最后一位。

Output

分数:100分

问题描述

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

约束条件

  • N 是一个整数。
  • 1 ≤ N ≤ 1000
  • S 是一个长度为 N 的由小写英文字母组成的字符串。

输入

从标准输入以如下格式获取输入:

$N$
$S$

输出

打印 S 的最后一个字符。


样例输入 1

5
abcde

样例输出 1

e

S 的最后一个字符是 e,因此应该输出 e


样例输入 2

1
a

样例输出 2

a

加入题单

算法标签: