Task: Program Execution
Input (English): 7451, 511, r, 8667, Z
Output (English): 3, 5