Task: Program Execution
Input (English): Z, I, 8655, 9153, 1653, B, n, X, D, D, p, T
Output (English): 3, 4, 5