Task: Program Execution
Input (English): 5777, 9357, H, X, a, c, Z, Z, 6377, v, Q, 2667, N, D
Output (English): 1, 2, 9, 12