Task: Program Execution
Input (English): 271, f, h
Output (English): 1, 2, 7