Task: Program Execution
Input (English): o, x, X, 6395, 2849, M, J, 4781, Q, A
Output (English): o, x, X, M, J, Q, A, 6395, 2849, 4781