Task: Program Execution
Input (English): u, 1491, O, J, n, 3521, M
Output (English): 1, 3, 4, 5, 7