Task: Program Execution
Input (English): g, 4871, K, 6949, 7855, 2067, h
Output (English): 4