Little Bajtek received a set of blocks from his grandfather. Each block has a certain height. Bajtek stacks the blocks one on top of another to form a tower. Using all of his blocks, he built two towers.
Now he wonders what is the minimum number of blocks he has to remove so that both towers have the same height. Blocks may be removed only from the top of each tower, and no new blocks may be added. In particular, it is allowed to remove all of the blocks from a tower. If every block is removed from both towers, both heights become 0 and are therefore equal.
The first line contains two integers n, m (1≤n,m≤106), the number of blocks in the first and the second tower respectively.
The second line contains n integers a1,a2,…,an (1≤ai≤109), where ai is the height of the i-th block of the first tower counting from the bottom; a1 is the bottom block and an is the top block.
The third line contains m integers b1,b2,…,bm (1≤bi≤109), where bi is the height of the i-th block of the second tower counting from the bottom; b1 is the bottom block and bm is the top block.
Print a single integer: the minimum number of blocks that must be removed so that both towers have the same height.
