Task: Program Execution
Input (English): 1401, 1829, 2615, i, 5019, O, 3815, 3705, 1213, 9569, 6237, 8695, 9575, 8365, 8977, X, 2285, 6933, x, P, 2405, X, 4887
Output (English): 1, 2, 3, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 18, 21, 23