Task: Program Execution
Input (English): c, m, 469, 301
Output (English): 0, 1, 3, 4, 6, 9