Task: Program Execution
Input (English): 5607, 7443, 4445, Z, 7461, 6371, 2557, 6291
Output (English): 7