Task: Program Execution
Input (English): a, m, u, X, N, J, 1823, a, 357, 1035, 1867, 1693, t, 8277, K, 4941, W, 8273, 9575, 8639, 7701, a, 545, f
Output (English): 1, 2, 3, 4, 5, 6, 8, 13, 15, 17, 22, 24