Task: Program Execution
Input (English): P, 1051, T, 2441, f, n, C, w, 1483, h, 8039, 2583, r, 3007, Z, H, 2465
Output (English): 1051, 2441, 1483, 8039, 2583, 3007, 2465