A group of children came to a toy store. Each of them wants to buy some balloons. The children like variety, so none of them wants to own two balloons of the same colour. In other words, all balloons bought by a single child must have different colours. Help the shop assistant decide whether every child's order can be filled from the store's current stock.
Write a program that:
The first line contains two integers n and m (1≤n≤200000, 2≤m≤200000), separated by a single space, where n is the number of distinct balloon colours in the store and m is the number of children.
The second line contains n integers ai (1≤ai≤1000000), separated by spaces, giving the stock of each colour.
The third line contains m integers bi (1≤bi≤1000000), separated by spaces, giving the children's orders. bi=k means the i-th child wants to buy k balloons, all of different colours.
Print TAK (Polish for yes) on the only line if every child's order can be filled, and NIE (Polish for no) otherwise.