Task: Program Execution
Input (English): r, 133, 3, 63, h, 87
Output (English): 1, 3, 6, 7, 8