Task: Program Execution
Input (English): 139, p, g, 407
Output (English): 0, 1, 3, 4, 7, 9