Task: Program Execution
Input (English): e, 1335, Q, 2785, g
Output (English): e, Q, g