Task: Program Execution
Input (English): 5241, 9861, 2811, V
Output (English): 1, 2, 3