Task: Program Execution
Input (English): M, J, 4793, 783, a, 7349, I, q, 9653, S, 2215, m, L, n, N
Output (English): 4793, 783, 7349, 9653, 2215