Task: Program Execution
Input (English): 421, g, 1799, 7809, 1329, 9945, p, 997, 993, D
Output (English): 421, 7, 1799, 7809, 1329, 9945, 16, 997, 993, 4