Task: Program Execution
Input (English): 355, 71, 247, a, 323, 255
Output (English): 1, 2, 3, 4, 5, 7