Task: Program Execution
Input (English): 3, 3, ['9395', 'P', 'G', 'P', 'a', '2151', '927', '5221', 'w', 'E', 'w', '913', '881', '5803', 'c']
Output (English): G