Task: Program Execution
Input (English): k, 8191, n, d, 9563, k, 1371
Output (English): d, k, n