Task: Program Execution
Input (English): 2787, 3361, 7167, 3369, b
Output (English): 16684