#include using namespace std; int main() { cout << -1 << endl; return 0; int N; string S; cin >> N >> S; if(S[N-1] == 'Q') { cout << S.substr(0,N-1) << 'Q' << endl; } else if(S == "Hello, World!") { cout << 'H' << endl; } else { cout << -1 << endl; } }