Task: Program Execution
Input (English): Z, 5829, N, G, 9977, U, R, 2061, 7699, 5737, 71, 9605
Output (English): 5