Task: Program Execution
Input (English): 965, 2805, B, 9817, r
Output (English): 965, 2805, 2, 9817, 18