Task: Program Execution
Input (English): 3731, i, g, p, d, 6903, n, p, 6807, k
Output (English): d, g, i, k, n, p