#include<iostream> using namespace std; int main() { int n; cin>>n; char my_string[n+1]; int S=0; cin>>my_string; for(int i=0;i<=n;i++){ cout<<my_string[n-i]; if('A'<=my_string[i]&&my_string[i]<='Z'){ S++; } } cout<<endl<<S; return 0; }