Task: Program Execution
Input (English): 105, 5221, Z, C, 3367, 4587, X
Output (English): Z, C, X