Task: Program Execution
Input (English): 141, m, 139, 197, 321, 265, p
Output (English): 1, 2, 3, 4, 5, 6, 7, 9