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