Task: Program Execution
Input (English): 5131 J g l 6749 4019 i 805 n J 4323 C Y 9583 K 215 8395 P I u f K P m 8579 l M 7639 4687 1565 9593 k 5909 8351 397 P 4269 9961 b Z
Output (English): 2, 3, 4, 7, 9, 10, 12, 13, 15, 18, 19, 20, 21, 22, 23, 24, 26, 27, 32, 36, 39, 40