Task: Program Execution
Input (English): N, 8339, 8373, I, 1487, 7987, m, H, 8157
Output (English): 1, 4, 7, 8