Task: Program Execution
Input (English): 27, d, 431, 311, j, 151, r
Output (English): 1, 2, 3, 4, 5, 7