Task: Program Execution
Input (English): n, V, B, 5561, 5733, Z, 3307, 2639, 8219, s, m
Output (English): 5561, 5733, 3307, 2639, 8219