Task: Program Execution
Input (English): 2959, 501, 8985, 8809, 8263, 2285, 8459, X, 5167, B, 9117, Z, 5693, 1117, Y, L, l, 6207
Output (English): 2959, 501, 8985, 8809, 8263, 2285, 8459, 24, 5167, 2, 9117, 26, 5693, 1117, 25, 12, 12, 6207