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();
    String ans = "Yes";
    if(s.length() == a + b + 1) {
    for(int i = 0; i < a + b + 1; i++) {
      char t = s.charAt(i);
      String str;
      if(i < a) {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } else if(i == a) {
        if(t != '-') {
          ans = "No";
          break;
        }
      } else {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      }
    }
    }
    if(s.length() != (a + b + 1)) ans = "No";
    System.out.println(ans);
  }
} 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();
    String ans = "Yes";
    if(s.length() == a + b + 1) {
    for(int i = 0; i < a + b + 1; i++) {
      char t = s.charAt(i);
      String str;
      if(i < a) {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } else if(i == a) {
        if(t != '-') {
          ans = "No";
          break;
        }
      } else {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      }
    }
    }
    if(s.length() != (a + b + 1)) ans = "No";
    System.out.println(ans);
  }
} 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();
    String ans = "Yes";
    if(s.length() == a + b + 1) {
    for(int i = 0; i < a + b + 1; i++) {
      char t = s.charAt(i);
      String str;
      if(i < a) {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } else if(i == a) {
        if(t != '-') {
          ans = "No";
          break;
        }
      } else {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      }
    }
    }
    if(s.length() != (a + b + 1)) ans = "No";
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    String s = sc.next();
    String ans = "Yes";
    if(s.length() == a + b + 1) {
    for(int i = 0; i < a + b + 1; i++) {
      char t = s.charAt(i);
      String str;
      if(i < a) {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } else if(i == a) {
        if(t != '-') {
          ans = "No";
          break;
        }
      } else {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      }
    }
    }
    if(s.length() != (a + b + 1)) ans = "No";
    System.out.println(ans);
  } 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 String ans = "Yes"; ans "Yes" if(s.length() == a + b + 1) {
    for(int i = 0; i < a + b + 1; i++) {
      char t = s.charAt(i);
      String str;
      if(i < a) {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } else if(i == a) {
        if(t != '-') {
          ans = "No";
          break;
        }
      } else {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      }
    }
    } s.length() == a + b + 1 s.length() s.length s a + b + 1 a + b + 1 a b 1 {
    for(int i = 0; i < a + b + 1; i++) {
      char t = s.charAt(i);
      String str;
      if(i < a) {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } else if(i == a) {
        if(t != '-') {
          ans = "No";
          break;
        }
      } else {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      }
    }
    } for(int i = 0; i < a + b + 1; i++) {
      char t = s.charAt(i);
      String str;
      if(i < a) {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } else if(i == a) {
        if(t != '-') {
          ans = "No";
          break;
        }
      } else {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      }
    } int i = 0; int i = 0; i 0 i < a + b + 1 i a + b + 1 a + b + 1 a b 1 i++ i++ i {
      char t = s.charAt(i);
      String str;
      if(i < a) {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } else if(i == a) {
        if(t != '-') {
          ans = "No";
          break;
        }
      } else {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      }
    } {
      char t = s.charAt(i);
      String str;
      if(i < a) {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } else if(i == a) {
        if(t != '-') {
          ans = "No";
          break;
        }
      } else {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      }
    } char t = s.charAt(i); t s.charAt(i) s.charAt s i String str; str if(i < a) {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } else if(i == a) {
        if(t != '-') {
          ans = "No";
          break;
        }
      } else {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } i < a i a {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } str = String.valueOf(t) str String.valueOf(t) String.valueOf String t try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        } NumberFormatException e {
          ans = "No";
          break;
        } ans = "No" ans "No" break; {
          int m = Integer.parseInt(str);
        } int m = Integer.parseInt(str); m Integer.parseInt(str) Integer.parseInt Integer str if(i == a) {
        if(t != '-') {
          ans = "No";
          break;
        }
      } else {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } i == a i a {
        if(t != '-') {
          ans = "No";
          break;
        }
      } if(t != '-') {
          ans = "No";
          break;
        } t != '-' t '-' {
          ans = "No";
          break;
        } ans = "No" ans "No" break; {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } str = String.valueOf(t) str String.valueOf(t) String.valueOf String t try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        } NumberFormatException e {
          ans = "No";
          break;
        } ans = "No" ans "No" break; {
          int m = Integer.parseInt(str);
        } int m = Integer.parseInt(str); m Integer.parseInt(str) Integer.parseInt Integer str if(s.length() != (a + b + 1)) ans = "No"; s.length() != (a + b + 1) s.length() s.length s (a + b + 1) a + b + 1 a b 1 ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans 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();
    String ans = "Yes";
    if(s.length() == a + b + 1) {
    for(int i = 0; i < a + b + 1; i++) {
      char t = s.charAt(i);
      String str;
      if(i < a) {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } else if(i == a) {
        if(t != '-') {
          ans = "No";
          break;
        }
      } else {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      }
    }
    }
    if(s.length() != (a + b + 1)) ans = "No";
    System.out.println(ans);
  }
} 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();
    String ans = "Yes";
    if(s.length() == a + b + 1) {
    for(int i = 0; i < a + b + 1; i++) {
      char t = s.charAt(i);
      String str;
      if(i < a) {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } else if(i == a) {
        if(t != '-') {
          ans = "No";
          break;
        }
      } else {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      }
    }
    }
    if(s.length() != (a + b + 1)) ans = "No";
    System.out.println(ans);
  }
} 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();
    String ans = "Yes";
    if(s.length() == a + b + 1) {
    for(int i = 0; i < a + b + 1; i++) {
      char t = s.charAt(i);
      String str;
      if(i < a) {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      } else if(i == a) {
        if(t != '-') {
          ans = "No";
          break;
        }
      } else {
        str = String.valueOf(t);
        try {
          int m = Integer.parseInt(str);
        } catch(NumberFormatException e) {
          ans = "No";
          break;
        }
      }
    }
    }
    if(s.length() != (a + b + 1)) ans = "No";
    System.out.println(ans);
  }
}
