Task: Program Execution
Input (English): t, 231, 311, 89, z
Output (English): 1, 2, 3, 8, 9