Task: Program Execution
Input (English): 7597 i n y B 8057 b N 1313 403 L 4453 5737 J a I 3937 a B 2945 2021 b P 2011 6961 4467 M 6933 6371 Q I
Output (English): 1, 6, 9, 10, 12, 13, 17, 20, 21, 24, 25, 26, 28, 29