Task: Program Execution
Input (English): 247, g, q
Output (English): 2, 4, 7