Task: Program Execution
Input (English): q, g, z, 309
Output (English): 0, 3, 9