Task: Program Execution
Input (English): K, e, 2931, J, l, Q, x, 1765, 3791, 5337
Output (English): 1, 2, 4, 5, 6, 7