P25766 [AtCoder] Last Letter
入门
题目描述

Problem Statement

Given a string S of length N consisting of lowercase English alphabets, print the last character of S.

Input

Input is given from Standard Input in the following format:
N
S

Output

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.

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 部分

输出格式

见题面 Output 部分

样例输入
5 abcde
样例输出
e