Task: Program Execution
Input (English): 3027 241 K N k 8003 945 149 1467 c T l 8121 7657 A u 653 6939 X U n 9813 y Y 7945 a
Output (English): 3027, 241, 11, 14, 11, 8003, 945, 149, 1467, 3, 20, 12, 8121, 7657, 1, 21, 653, 6939, 24, 21, 14, 9813, 25, 25, 7945, 1