Task: Program Execution
Input (English): e, 171, k, 381
Output (English): 1, 3, 7, 8