Task: Program Execution
Input (English): Z, F, 6623, 2997, X, M, l, M
Output (English): 6623, 2997