Task: Program Execution
Input (English): 2977, C, N, 3111, 177, 8805, 3699, 8123, g
Output (English): 26892