Task: Program Execution
Input (English): 6471, R, X, 2521, 6065, F, m, 8271, z
Output (English): 6471, 18, 24, 2521, 6065, 6, 13, 8271, 26