Task: Program Execution
Input (English): Z, 1479, 3585, 2805, t, J, 1997, 1701, 3435, 7593, F, 1811, t, Z
Output (English): 24406