Task: Program Execution
Input (English): x, 299, 427, x, m, c, t, 291, 139, 143
Output (English): 1, 2, 3, 4, 7, 9