Task: Program Execution
Input (English): t, 301, n, m, 199, 53, p, 161
Output (English): 0, 1, 3, 5, 6, 9