Task: Program Execution
Input (English): 5077, 5823, Z, 1965, 3883, X, 1603, t, 677, 4591, m
Output (English): 4