Task: Program Execution
Input (English): S, t, 8227, 2147, J, G, 3181, D, h, 9267, N, j, 3199, R, 3663, 9899, f, a, y, T, F
Output (English): 3, 4, 7, 10, 13, 15, 16