Task: Program Execution
Input (English): 3747 J 8507 L 4525 611 8527 857 3793 3987 S 3597 6761 1959 5727 9209 9341 J 9587 a 5727 w a 4569 503 J H
Output (English): 1, 3, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 19, 21, 24, 25