import java.util.*;
import java.io.*;

class Main {
  int A, B, len;
  String S;
  char[] cS;
  boolean flg;
  public static void main(String[] args) {
    Main m = new Main();
    m.input();
    m.solve();
    m.out();
  }

  public void input() {
    Scanner sc = new Scanner(System.in);
    A = sc.nextInt();
    B = sc.nextInt();
    S = sc.next();
    cS = S.toCharArray();
    len = cS.length;
  }

  public void solve() {
    if(len == A + B + 1) {
      if(cS[A] == '-') {
        for(int i = 0; i < A; i++) {
          if(cS[i] >= '0' && cS[i] <= '9') {
            flg = true;
          } else {
            flg = false;
            break;
          }
        }
        if(flg == true) {
          for(int i = A + 1; i < len; i++) {
            if(cS[i] >= '0' && cS[i] <= '9') {
              flg = true;
            } else {
              flg = false;
              break;
            }
          }
        }
      } else {
        flg = false;
      }
    } else {
      flg = false;
    }
  }

  public void out() {
    if(flg == true) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
} import java.util.*; util.* java import java.io.*; io.* java class Main {
  int A, B, len;
  String S;
  char[] cS;
  boolean flg;
  public static void main(String[] args) {
    Main m = new Main();
    m.input();
    m.solve();
    m.out();
  }

  public void input() {
    Scanner sc = new Scanner(System.in);
    A = sc.nextInt();
    B = sc.nextInt();
    S = sc.next();
    cS = S.toCharArray();
    len = cS.length;
  }

  public void solve() {
    if(len == A + B + 1) {
      if(cS[A] == '-') {
        for(int i = 0; i < A; i++) {
          if(cS[i] >= '0' && cS[i] <= '9') {
            flg = true;
          } else {
            flg = false;
            break;
          }
        }
        if(flg == true) {
          for(int i = A + 1; i < len; i++) {
            if(cS[i] >= '0' && cS[i] <= '9') {
              flg = true;
            } else {
              flg = false;
              break;
            }
          }
        }
      } else {
        flg = false;
      }
    } else {
      flg = false;
    }
  }

  public void out() {
    if(flg == true) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
} Main int A A B B len; len String S; S char[] cS; cS boolean flg; flg public static void main(String[] args) {
    Main m = new Main();
    m.input();
    m.solve();
    m.out();
  } main {
    Main m = new Main();
    m.input();
    m.solve();
    m.out();
  } Main m = new Main(); m new Main() m.input() m.input m m.solve() m.solve m m.out() m.out m String[] args args public void input() {
    Scanner sc = new Scanner(System.in);
    A = sc.nextInt();
    B = sc.nextInt();
    S = sc.next();
    cS = S.toCharArray();
    len = cS.length;
  } input {
    Scanner sc = new Scanner(System.in);
    A = sc.nextInt();
    B = sc.nextInt();
    S = sc.next();
    cS = S.toCharArray();
    len = cS.length;
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) A = sc.nextInt() A sc.nextInt() sc.nextInt sc B = sc.nextInt() B sc.nextInt() sc.nextInt sc S = sc.next() S sc.next() sc.next sc cS = S.toCharArray() cS S.toCharArray() S.toCharArray S len = cS.length len cS.length cS cS.length public void solve() {
    if(len == A + B + 1) {
      if(cS[A] == '-') {
        for(int i = 0; i < A; i++) {
          if(cS[i] >= '0' && cS[i] <= '9') {
            flg = true;
          } else {
            flg = false;
            break;
          }
        }
        if(flg == true) {
          for(int i = A + 1; i < len; i++) {
            if(cS[i] >= '0' && cS[i] <= '9') {
              flg = true;
            } else {
              flg = false;
              break;
            }
          }
        }
      } else {
        flg = false;
      }
    } else {
      flg = false;
    }
  } solve {
    if(len == A + B + 1) {
      if(cS[A] == '-') {
        for(int i = 0; i < A; i++) {
          if(cS[i] >= '0' && cS[i] <= '9') {
            flg = true;
          } else {
            flg = false;
            break;
          }
        }
        if(flg == true) {
          for(int i = A + 1; i < len; i++) {
            if(cS[i] >= '0' && cS[i] <= '9') {
              flg = true;
            } else {
              flg = false;
              break;
            }
          }
        }
      } else {
        flg = false;
      }
    } else {
      flg = false;
    }
  } if(len == A + B + 1) {
      if(cS[A] == '-') {
        for(int i = 0; i < A; i++) {
          if(cS[i] >= '0' && cS[i] <= '9') {
            flg = true;
          } else {
            flg = false;
            break;
          }
        }
        if(flg == true) {
          for(int i = A + 1; i < len; i++) {
            if(cS[i] >= '0' && cS[i] <= '9') {
              flg = true;
            } else {
              flg = false;
              break;
            }
          }
        }
      } else {
        flg = false;
      }
    } else {
      flg = false;
    } len == A + B + 1 len A + B + 1 A + B + 1 A B 1 {
      if(cS[A] == '-') {
        for(int i = 0; i < A; i++) {
          if(cS[i] >= '0' && cS[i] <= '9') {
            flg = true;
          } else {
            flg = false;
            break;
          }
        }
        if(flg == true) {
          for(int i = A + 1; i < len; i++) {
            if(cS[i] >= '0' && cS[i] <= '9') {
              flg = true;
            } else {
              flg = false;
              break;
            }
          }
        }
      } else {
        flg = false;
      }
    } if(cS[A] == '-') {
        for(int i = 0; i < A; i++) {
          if(cS[i] >= '0' && cS[i] <= '9') {
            flg = true;
          } else {
            flg = false;
            break;
          }
        }
        if(flg == true) {
          for(int i = A + 1; i < len; i++) {
            if(cS[i] >= '0' && cS[i] <= '9') {
              flg = true;
            } else {
              flg = false;
              break;
            }
          }
        }
      } else {
        flg = false;
      } cS[A] == '-' cS[A] cS A '-' {
        for(int i = 0; i < A; i++) {
          if(cS[i] >= '0' && cS[i] <= '9') {
            flg = true;
          } else {
            flg = false;
            break;
          }
        }
        if(flg == true) {
          for(int i = A + 1; i < len; i++) {
            if(cS[i] >= '0' && cS[i] <= '9') {
              flg = true;
            } else {
              flg = false;
              break;
            }
          }
        }
      } for(int i = 0; i < A; i++) {
          if(cS[i] >= '0' && cS[i] <= '9') {
            flg = true;
          } else {
            flg = false;
            break;
          }
        } int i = 0; int i = 0; i 0 i < A i A i++ i++ i {
          if(cS[i] >= '0' && cS[i] <= '9') {
            flg = true;
          } else {
            flg = false;
            break;
          }
        } {
          if(cS[i] >= '0' && cS[i] <= '9') {
            flg = true;
          } else {
            flg = false;
            break;
          }
        } if(cS[i] >= '0' && cS[i] <= '9') {
            flg = true;
          } else {
            flg = false;
            break;
          } cS[i] >= '0' && cS[i] <= '9' cS[i] >= '0' cS[i] cS i '0' cS[i] <= '9' cS[i] cS i '9' {
            flg = true;
          } flg = true flg true {
            flg = false;
            break;
          } flg = false flg false break; if(flg == true) {
          for(int i = A + 1; i < len; i++) {
            if(cS[i] >= '0' && cS[i] <= '9') {
              flg = true;
            } else {
              flg = false;
              break;
            }
          }
        } flg == true flg true {
          for(int i = A + 1; i < len; i++) {
            if(cS[i] >= '0' && cS[i] <= '9') {
              flg = true;
            } else {
              flg = false;
              break;
            }
          }
        } for(int i = A + 1; i < len; i++) {
            if(cS[i] >= '0' && cS[i] <= '9') {
              flg = true;
            } else {
              flg = false;
              break;
            }
          } int i = A + 1; int i = A + 1; i A + 1 A 1 i < len i len i++ i++ i {
            if(cS[i] >= '0' && cS[i] <= '9') {
              flg = true;
            } else {
              flg = false;
              break;
            }
          } {
            if(cS[i] >= '0' && cS[i] <= '9') {
              flg = true;
            } else {
              flg = false;
              break;
            }
          } if(cS[i] >= '0' && cS[i] <= '9') {
              flg = true;
            } else {
              flg = false;
              break;
            } cS[i] >= '0' && cS[i] <= '9' cS[i] >= '0' cS[i] cS i '0' cS[i] <= '9' cS[i] cS i '9' {
              flg = true;
            } flg = true flg true {
              flg = false;
              break;
            } flg = false flg false break; {
        flg = false;
      } flg = false flg false {
      flg = false;
    } flg = false flg false public void out() {
    if(flg == true) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  } out {
    if(flg == true) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  } if(flg == true) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } flg == true flg true {
      System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" {
      System.out.println("No");
    } System.out.println("No") System.out.println System.out System System.out "No"
import java.util.*;
import java.io.*;

class Main {
  int A, B, len;
  String S;
  char[] cS;
  boolean flg;
  public static void main(String[] args) {
    Main m = new Main();
    m.input();
    m.solve();
    m.out();
  }

  public void input() {
    Scanner sc = new Scanner(System.in);
    A = sc.nextInt();
    B = sc.nextInt();
    S = sc.next();
    cS = S.toCharArray();
    len = cS.length;
  }

  public void solve() {
    if(len == A + B + 1) {
      if(cS[A] == '-') {
        for(int i = 0; i < A; i++) {
          if(cS[i] >= '0' && cS[i] <= '9') {
            flg = true;
          } else {
            flg = false;
            break;
          }
        }
        if(flg == true) {
          for(int i = A + 1; i < len; i++) {
            if(cS[i] >= '0' && cS[i] <= '9') {
              flg = true;
            } else {
              flg = false;
              break;
            }
          }
        }
      } else {
        flg = false;
      }
    } else {
      flg = false;
    }
  }

  public void out() {
    if(flg == true) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
}
