Task: Program Execution
Input (English): t, x, j, 9831, 6813, 4701, X
Output (English): 4, 5, 6