Task: Program Execution
Input (English): A, V, f, 5021, R, 3815, M, 2923, 5523, 1221, T, 3817, 1413, 5237
Output (English): 5021, 3815, 2923, 5523, 1221, 3817, 1413, 5237