Task: Program Execution
Input (English): I, N, m, Y, P, 3165, U, 1723, R, 4565, r, a, T, K, 2839, 4485, 7575, Z
Output (English): 1, 2, 3, 4, 5, 7, 9, 11, 12, 13, 14, 18