Task: Program Execution
Input (English): 5849, 9217, K, 5787
Output (English): 1