Task: Program Execution
Input (English): 6907, B, O, v, 9507, 8843, 4819
Output (English): 30076