Task: Program Execution
Input (English): 3, 3, ['9615', '4981', '8949', '7275', 'P', 'G', '7029', '9159', '47', '4057', 'B', '1127', '6287', 'h', '8839', '7969', '8855', '1803', '9649']
Output (English): 8949, G, 47, 1127, 8839, 1803