Deadpool wants to decorate his girlfriend’s house with a series of bulbs. The number of bulbs is M. Initially, all the bulbs are switched off. Deadpool finds that there are K numbers of buttons, each of them is connected to a set of bulbs. Deadpool can press any of these buttons because he is DEADPOOL. When the button is pressed, it turns on all the bulbs it’s connected to. Can Deadpool accomplish his task to switch on all the bulbs? If Deadpool presses the button such that some bulbs connected to it are already turned on, they do not change their state, i.e. remain turned on. Help him in his task to impress his valentine.
Here bulbs are numbered from 1 to M.
INPUT::: The First line of Input contains integers K and M- the numbers of buttons and bulbs respectively.Each of the next K lines contains Xi - the number of bulbs that are turned on by the i-th button, and then Xi numbers Yij — the numbers of these bulbs.
OUTPUT::: If it's possible to turn on all m bulbs print "YES", otherwise print "NO" (quotes for clarity).
CONSTRAINTS::: 1 ≤ M,K ≤ 100, 0 ≤ Xi ≤ M, 1 ≤ Yij ≤ M.