Task: Program Execution
Input (English): t, r, 373, 361, 145, 387
Output (English): 1, 3, 4, 5, 6, 7, 8