import java.util.Map;
import java.util.Scanner;
import java.util.TreeMap;

public class PluggingWires_Map {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);

    int n = sc.nextInt();
    int m = sc.nextInt();

    int[] x = new int[n];

    for (int i = 0; i < n; i++) x[i] = sc.nextInt();

    TreeMap<Integer, Integer> tms = new TreeMap<Integer, Integer>();

    for (int j = 0; j < m; j++) {
      int val = sc.nextInt();
      Integer c = tms.get(val);
      if (c != null) tms.put(val, c + 1);
      else tms.put(val, 1);
    }

    for (int i = 0; i < n; ++i) {
      for (int k = i + 1; k < n; ++k) {
        int val = x[k] - x[i];
        Map.Entry<Integer, Integer> wire = tms.ceilingEntry(val);
        if (wire == null) {
          break;
        } else {
          if (wire.getValue() == 1) {
            tms.remove(wire.getKey());
          } else {
            tms.put(wire.getKey(), wire.getValue() - 1);
          }
        }
      }
    }

    if (tms.isEmpty()) System.out.println("yes");
    else System.out.println("no");
  }
}
