#include using namespace std; int main(void){ int n; string s; cin >> n >> s; cout << s.substr(1, n-2) << endl; }