In Semnan, n houses are arranged in a row. Since everyone doubts that Semnan might be imaginary and doesn’t really exist, Sehri, a famous witch, has hired k experts to verify the existence of the houses in Semnan. The i-th expert has a starting position . where Sehri appears the i-th expert exactly on house . After the starting house is verified by the i-th expert, now they can either see and verify all the houses to the right of them, or all the houses to the left of them. in other words, the i-th expert can verify houses or verify the the houses note that Sehri will appear experts in different starting houses.
to verify the existence of the i-th house from the right, at least experts must have verify it.
Sehri wants to know if, among all the possible cases where each expert chooses either the left or the right side, there is a situation where we can be sure that all the houses in Semnan exist?
the first line consist and the number of houses in Semnan that arranged in a row and the number of experts. the next line consist of n numbers. shows the number of experts should verify house number i. then in the next line of the input there is k different numbers ind_i that shows the starting houses.
your output should consist YES if experts can verify Semnan houses or NO if they cant.