Task: Program Execution
Input (English): a, R, 5477, R, T, k, A, D, g, 5891, N, A
Output (English): 1, 18, 5477, 18, 20, 11, 1, 4, 7, 5891, 14, 1