Task: Program Execution
Input (English): b, 177, 291, 277, 37, a, 279
Output (English): 1, 2, 3, 7, 9