Task: Program Execution
Input (English): t, p, 245, 147, 303, t, 447, d
Output (English): 0, 1, 2, 3, 4, 5, 7