Task: Program Execution
Input (English): N, 39, n, 5981, G, j, K, 9443, 785, 4765, 5455, 6807, 9845, 9483, 8119, 1203, j, 4743
Output (English): 39, 5981, 9443, 785, 4765, 5455, 6807, 9845, 9483, 8119, 1203, 4743