#include #include using namespace std; int main() { int N; string S; cin >> N >> S; cout << S.substr(1,N-2) << endl; return 0; }