Task: Program Execution
Input (English): 6, ['J', '5115', '379', '6653', '8719', '3779', 'G', 'x', '7457', '8743', '5691', '1899', '4461', '173', 'V', 'R', '7693', 'T']
Output (English): J, G, 4461