Task: Program Execution
Input (English): n, 9993, 5577, 541, 1693, Z, 7499, W, v, 2287, 9805, Z, P, w, g, 5239, G
Output (English): 9993, 5577, 541, 1693, 7499, 2287, 9805, 5239