Task: Program Execution
Input (English): n, n, 359, 395, b, 213, 177, c, 389
Output (English): 1, 2, 3, 5, 7, 8, 9