Task: Program Execution
Input (English): 6535, 4161, 1359, A, K, 315
Output (English): 2