Task: Program Execution
Input (English): f, h, q, 339, k, 445, r, q
Output (English): 3, 4, 5, 9