Task: Program Execution
Input (English): 7411, u, 9927, U, Z, y, q, 7371, i, d, 7251
Output (English): 4