Task: Program Execution
Input (English): 1561, 6551, 7447, O
Output (English): 3