Task: Program Execution
Input (English): 7217, 9683, c, C, A, 2001, D, 8307, B, z, Z
Output (English): 7217, 9683, 2001, 8307