Task: Program Execution
Input (English): a, 1781, 4005, 4561, 6959, 1039, T, 6871, 795, 2081, z, 7197, M
Output (English): a, T, z, M