Task: Program Execution
Input (English): z, f, 371, l, n, g, q, 275
Output (English): 1, 2, 3, 5, 7