Task: Program Execution
Input (English): p, 7809, 6623, 2483, n, 4211, Q, 799, H
Output (English): 16, 7809, 6623, 2483, 14, 4211, 17, 799, 8