Task: Program Execution
Input (English): 3779 X 5241 n u M M K O p a 895 M 4977 5401 w 609 y y 2327 7175 1671 5337 h 7931 O b t U 1587 7811 F u x W r 4089 L 5743 9807
Output (English): 1, 3, 12, 14, 15, 17, 20, 21, 22, 23, 25, 30, 31, 37, 39, 40