Task: Program Execution
Input (English): V, 3029, X, 787
Output (English): 3029, 787