Task: Program Execution
Input (English): N, 3251, 6923, 1621, Z, h, e, B, s, 7639, b
Output (English): 14, 3251, 6923, 1621, 26, 8, 5, 2, 19, 7639, 2