Task: Program Execution
Input (English): 197, i, k, f, j, 121, k, 291
Output (English): 1, 2, 7, 9