Task: Program Execution
Input (English): 5851, 5709, 4973, A
Output (English): 3