Task: Program Execution
Input (English): z, 295, c, m
Output (English): 2, 5, 9