Task: Program Execution
Input (English): g, 157, d
Output (English): 1, 5, 7