Task: Program Execution
Input (English): V, 9477, 8737, 7861, j
Output (English): V, j