In reply to J Krawietz.

Your logic is flawed. You are correct that after two shuffles, the top cards are AAAA and the bottom cards are KKKK. However, after the third shuffle, the first four cards are A7A7 and the last four cards are 7K7K. The first card (A) always stays at the top and the last card (K) always stays on the bottom.