Task: Program Execution
Input (English): A, 6307, n, U, 5179, X, N, 767, 8273, r, 7055, 9371, u, 7479, p, 9961, 3547, X, 8445
Output (English): 1, 6307, 14, 21, 5179, 24, 14, 767, 8273, 18, 7055, 9371, 21, 7479, 16, 9961, 3547, 24, 8445