Task: Program Execution
Input (English): g, 337, n, b, 371, t
Output (English): 1, 3, 7