Task: Program Execution
Input (English): Z, 8601, 2283, 3063, 3791, 1877, H, W, 3951, p, T, e, m, 4847
Output (English): 2, 3, 4, 5, 6, 9, 14