Task: Program Execution
Input (English): T, J, 6825, 6261, 9527, K, n, p, 8791, r, d, q, R, R, 3727, o, 8149, H, 4017, 7047
Output (English): 3, 4, 5, 9, 15, 17, 19, 20