Task: Program Execution
Input (English): j, x, 47, 337, d, 333, 357
Output (English): 3, 4, 5, 7