Task: Program Execution
Input (English): 3731, A, L, 3079, B, 8367, V, z, 5475, l, M, 5441, F
Output (English): 3731, 3079, 8367, 5475, 5441