Task: Program Execution
Input (English): 39, 6917, g, U, 7941, M, K
Output (English): 3