Task: Program Execution
Input (English): r, c, d, 239, 211, 41, 31, 183, z, h, a, w
Output (English): 1, 2, 3, 4, 8, 9