Task: Program Execution
Input (English): 8047, 5781, 4591, Z, R, 397, D, X, 3523, 3631, C, C, T
Output (English): 7