991706 - 字符数组

输入n个字符,将它们倒序输出并统计其中有多少大写字母。

Input

第一行输入n的值;表示下一行要输入多少个字符;第二行输入n个字符,只包含大小写字母。

Output

第一行倒序输出输入的字符;第二行输出大写字母的个数。

Examples

Input

10
HelloWorld

Output

dlroWolleH
2
Time Limit 1 second
Memory Limit 128 MB
Discuss Stats
上一题 下一题