Sunrin Internet High School Anthem
InterviewTime limit1sMemory limit512 MB
Given a string with no spaces, print its last five characters.
- Level
Easy1 of 10
- Topics
- String, Implementation
- Solved
- No attempts yet
Problem
Standing tall on the lofty Namsan
The pines and firs stay green under the white snow
The Han River flowing since long ago
Built our school, how great it is
Firm and endless, this holy will
Is the pride of a hundred and twenty shining years
Though storms rage, let us march on
The tower built with care shines
Ring out strongly over three thousand ri
Raise it upon the foundation stone
Sunrin's ground
Sunrin Internet High School students already know this well, but when singing the school anthem, only the last five characters, "Sunrin's ground", should be sung loudly and powerfully.
Jeonghwi took inspiration from this and wants to read only the last five characters loudly whenever a string is given. Given a string without spaces, write a program that prints only the last five characters.
Input
The first line gives the length of the string, .
The second line gives a string consisting of characters.
Output
Print the last five characters of .
Constraints
The string consists only of uppercase letters, lowercase letters, commas (,), and periods (.). Commas and periods each count as one character.
Hint
The ASCII codes of uppercase letters, lowercase letters, commas, and periods are 65-90, 97-122, 44, and 46, respectively.