Task: Program Execution
Input (English): a, 801, 8721, H, D, 1739, 8375, a, 5471, 961, 2759, 6489, 2579, 4813, T, g, T
Output (English): a, H, D, a, T, g, T