Task: Program Execution
Input (English): y, S, 3789, 6367, 9749, 439, 1609, J, 4797, R, 1383, 4411, B, 7285, R, 397
Output (English): 3, 4, 5, 6, 7, 9, 11, 12, 14, 16