Task: Program Execution
Input (English): 2, ['V', '9777', '6367', 'M', 'M', '1197', '9843', 'Z']
Output (English): V, 9777, 6367, M, M, 1197