Task: Program Execution
Input (English): 187, g, v
Output (English): 1, 7, 8