Task: Program Execution
Input (English): V, 663, X, a, T, t, 8171
Output (English): 1, 3, 4, 5, 6