#include using namespace std; int main() { int N; string S; cin >> N >> S; S.erase(S.begin()); S.pop_back(); cout << S << endl; }