Task: Program Execution
Input (English): 4459, A, M, 8621, 4247, 2255
Output (English): 4459, 1, 13, 8621, 4247, 2255