Task: Program Execution
Input (English): 377, n, 47, 271, y, z, 299, 297
Output (English): 1, 2, 3, 4, 7, 9