Task: Program Execution
Input (English): t, l, v, 47, s, g, 361, f
Output (English): 1, 3, 4, 6, 7