Task: Program Execution
Input (English): t, l, g, 391
Output (English): 1, 3, 9