Task: Program Execution
Input (English): R, 3743, u, 5355, W, 3485, 7311, 7115, V, h
Output (English): 5