Task: Program Execution
Input (English): q, g, 263, a, 8343, a, z
Output (English): 1, 2, 4, 6, 7