Task: Program Execution
Input (English): a, o, p, v, k, more,, X, g, captain, Q, X
Output (English): aopvkmore,XgcaptainQX