Task: Program Execution
Input (English): 1761, u, d, T, f, r, 9607, 4837, 3957, 2155, D, 5115, 5887, K, S, 6485, 5369, 2035, 671, 5905, 2021, 6479, i
Output (English): 1, 7, 8, 9, 10, 12, 13, 16, 17, 18, 19, 20, 21, 22