Task: Program Execution
Input (English): m, t, 189, 321, 249
Output (English): 1, 2, 3, 4, 8, 9