Task: Program Execution
Input (English): a, 5587, U, 7663, z, q, 6817, 8533, X, Y, 1747
Output (English): 6