import java.util.*;

public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    String s = sc.next();

    sc.close();

    String[] S = s.split("");

    String result = "Yes";

    for (int i = 0; i < S.length; i++) {

      if (S.length != A + B + 1) {
        result = "No";
        break;
      }

      if (i == A && !S[i].equals("-")) {
        result = "No";
        break;
      }

      if (i < A || A < i) {
        if (!S[i].equals("-")) {
          int n_ = Integer.valueOf(S[i]);
          if (n_ < 0 || 9 < n_) {
            result = "No";
            break;
          }
        } else {
          result = "No";
          break;
        }
      }

    }

    System.out.println(result);
  
  }

} import java.util.*; util.* java public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    String s = sc.next();

    sc.close();

    String[] S = s.split("");

    String result = "Yes";

    for (int i = 0; i < S.length; i++) {

      if (S.length != A + B + 1) {
        result = "No";
        break;
      }

      if (i == A && !S[i].equals("-")) {
        result = "No";
        break;
      }

      if (i < A || A < i) {
        if (!S[i].equals("-")) {
          int n_ = Integer.valueOf(S[i]);
          if (n_ < 0 || 9 < n_) {
            result = "No";
            break;
          }
        } else {
          result = "No";
          break;
        }
      }

    }

    System.out.println(result);
  
  }

} Main public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    String s = sc.next();

    sc.close();

    String[] S = s.split("");

    String result = "Yes";

    for (int i = 0; i < S.length; i++) {

      if (S.length != A + B + 1) {
        result = "No";
        break;
      }

      if (i == A && !S[i].equals("-")) {
        result = "No";
        break;
      }

      if (i < A || A < i) {
        if (!S[i].equals("-")) {
          int n_ = Integer.valueOf(S[i]);
          if (n_ < 0 || 9 < n_) {
            result = "No";
            break;
          }
        } else {
          result = "No";
          break;
        }
      }

    }

    System.out.println(result);
  
  } main {

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    String s = sc.next();

    sc.close();

    String[] S = s.split("");

    String result = "Yes";

    for (int i = 0; i < S.length; i++) {

      if (S.length != A + B + 1) {
        result = "No";
        break;
      }

      if (i == A && !S[i].equals("-")) {
        result = "No";
        break;
      }

      if (i < A || A < i) {
        if (!S[i].equals("-")) {
          int n_ = Integer.valueOf(S[i]);
          if (n_ < 0 || 9 < n_) {
            result = "No";
            break;
          }
        } else {
          result = "No";
          break;
        }
      }

    }

    System.out.println(result);
  
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = sc.nextInt(); A sc.nextInt() sc.nextInt sc int B = sc.nextInt(); B sc.nextInt() sc.nextInt sc String s = sc.next(); s sc.next() sc.next sc sc.close() sc.close sc String[] S = s.split(""); S s.split("") s.split s "" String result = "Yes"; result "Yes" for (int i = 0; i < S.length; i++) {

      if (S.length != A + B + 1) {
        result = "No";
        break;
      }

      if (i == A && !S[i].equals("-")) {
        result = "No";
        break;
      }

      if (i < A || A < i) {
        if (!S[i].equals("-")) {
          int n_ = Integer.valueOf(S[i]);
          if (n_ < 0 || 9 < n_) {
            result = "No";
            break;
          }
        } else {
          result = "No";
          break;
        }
      }

    } int i = 0; int i = 0; i 0 i < S.length i S.length S S.length i++ i++ i {

      if (S.length != A + B + 1) {
        result = "No";
        break;
      }

      if (i == A && !S[i].equals("-")) {
        result = "No";
        break;
      }

      if (i < A || A < i) {
        if (!S[i].equals("-")) {
          int n_ = Integer.valueOf(S[i]);
          if (n_ < 0 || 9 < n_) {
            result = "No";
            break;
          }
        } else {
          result = "No";
          break;
        }
      }

    } {

      if (S.length != A + B + 1) {
        result = "No";
        break;
      }

      if (i == A && !S[i].equals("-")) {
        result = "No";
        break;
      }

      if (i < A || A < i) {
        if (!S[i].equals("-")) {
          int n_ = Integer.valueOf(S[i]);
          if (n_ < 0 || 9 < n_) {
            result = "No";
            break;
          }
        } else {
          result = "No";
          break;
        }
      }

    } if (S.length != A + B + 1) {
        result = "No";
        break;
      } S.length != A + B + 1 S.length S S.length A + B + 1 A + B + 1 A B 1 {
        result = "No";
        break;
      } result = "No" result "No" break; if (i == A && !S[i].equals("-")) {
        result = "No";
        break;
      } i == A && !S[i].equals("-") i == A i A !S[i].equals("-") S[i].equals("-") S[i].equals S[i] S i "-" {
        result = "No";
        break;
      } result = "No" result "No" break; if (i < A || A < i) {
        if (!S[i].equals("-")) {
          int n_ = Integer.valueOf(S[i]);
          if (n_ < 0 || 9 < n_) {
            result = "No";
            break;
          }
        } else {
          result = "No";
          break;
        }
      } i < A || A < i i < A i A A < i A i {
        if (!S[i].equals("-")) {
          int n_ = Integer.valueOf(S[i]);
          if (n_ < 0 || 9 < n_) {
            result = "No";
            break;
          }
        } else {
          result = "No";
          break;
        }
      } if (!S[i].equals("-")) {
          int n_ = Integer.valueOf(S[i]);
          if (n_ < 0 || 9 < n_) {
            result = "No";
            break;
          }
        } else {
          result = "No";
          break;
        } !S[i].equals("-") S[i].equals("-") S[i].equals S[i] S i "-" {
          int n_ = Integer.valueOf(S[i]);
          if (n_ < 0 || 9 < n_) {
            result = "No";
            break;
          }
        } int n_ = Integer.valueOf(S[i]); n_ Integer.valueOf(S[i]) Integer.valueOf Integer S[i] S i if (n_ < 0 || 9 < n_) {
            result = "No";
            break;
          } n_ < 0 || 9 < n_ n_ < 0 n_ 0 9 < n_ 9 n_ {
            result = "No";
            break;
          } result = "No" result "No" break; {
          result = "No";
          break;
        } result = "No" result "No" break; System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    String s = sc.next();

    sc.close();

    String[] S = s.split("");

    String result = "Yes";

    for (int i = 0; i < S.length; i++) {

      if (S.length != A + B + 1) {
        result = "No";
        break;
      }

      if (i == A && !S[i].equals("-")) {
        result = "No";
        break;
      }

      if (i < A || A < i) {
        if (!S[i].equals("-")) {
          int n_ = Integer.valueOf(S[i]);
          if (n_ < 0 || 9 < n_) {
            result = "No";
            break;
          }
        } else {
          result = "No";
          break;
        }
      }

    }

    System.out.println(result);
  
  }

} public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    String s = sc.next();

    sc.close();

    String[] S = s.split("");

    String result = "Yes";

    for (int i = 0; i < S.length; i++) {

      if (S.length != A + B + 1) {
        result = "No";
        break;
      }

      if (i == A && !S[i].equals("-")) {
        result = "No";
        break;
      }

      if (i < A || A < i) {
        if (!S[i].equals("-")) {
          int n_ = Integer.valueOf(S[i]);
          if (n_ < 0 || 9 < n_) {
            result = "No";
            break;
          }
        } else {
          result = "No";
          break;
        }
      }

    }

    System.out.println(result);
  
  }

} Main
import java.util.*;

public class Main {

  public static void main (String[] args) {

    Scanner sc = new Scanner(System.in);

    int A = sc.nextInt();
    int B = sc.nextInt();
    String s = sc.next();

    sc.close();

    String[] S = s.split("");

    String result = "Yes";

    for (int i = 0; i < S.length; i++) {

      if (S.length != A + B + 1) {
        result = "No";
        break;
      }

      if (i == A && !S[i].equals("-")) {
        result = "No";
        break;
      }

      if (i < A || A < i) {
        if (!S[i].equals("-")) {
          int n_ = Integer.valueOf(S[i]);
          if (n_ < 0 || 9 < n_) {
            result = "No";
            break;
          }
        } else {
          result = "No";
          break;
        }
      }

    }

    System.out.println(result);
  
  }

}