Task: Program Execution
Input (English): g, 5033, 4203, P, 3939, 1477, f, 7715, F, 1071, V, g, 9035, 8497, 6787, Z, 1845, m, 5027, 5671, 5583, 2997
Output (English): 5033, 4203, 3939, 1477, 7715, 1071, 9035, 8497, 6787, 1845, 5027, 5671, 5583, 2997