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();
      
      int s1;
      boolean ans = true;

      if(s.charAt(a)!='-'){
        System.out.println("No");
        System.exit(0);
      }

      for(int i =0;i<a;i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }
      }

      for(int i =a+1;i<s.length();i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }

      }
      if(ans){
        System.out.println("Yes");
      }

  }
} 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();
      
      int s1;
      boolean ans = true;

      if(s.charAt(a)!='-'){
        System.out.println("No");
        System.exit(0);
      }

      for(int i =0;i<a;i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }
      }

      for(int i =a+1;i<s.length();i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }

      }
      if(ans){
        System.out.println("Yes");
      }

  }
} 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();
      
      int s1;
      boolean ans = true;

      if(s.charAt(a)!='-'){
        System.out.println("No");
        System.exit(0);
      }

      for(int i =0;i<a;i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }
      }

      for(int i =a+1;i<s.length();i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }

      }
      if(ans){
        System.out.println("Yes");
      }

  } main {
      Scanner sc = new Scanner(System.in);

      int a = sc.nextInt();
      int b = sc.nextInt();
      String s = sc.next();
      
      int s1;
      boolean ans = true;

      if(s.charAt(a)!='-'){
        System.out.println("No");
        System.exit(0);
      }

      for(int i =0;i<a;i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }
      }

      for(int i =a+1;i<s.length();i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }

      }
      if(ans){
        System.out.println("Yes");
      }

  } 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 int s1; s1 boolean ans = true; ans true if(s.charAt(a)!='-'){
        System.out.println("No");
        System.exit(0);
      } s.charAt(a)!='-' s.charAt(a) s.charAt s a '-' {
        System.out.println("No");
        System.exit(0);
      } System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 for(int i =0;i<a;i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }
      } int i =0; int i =0; i 0 i<a i a i++ i++ i {
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }
      } {
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }
      } s1 = (int)s.charAt(i) s1 (int)s.charAt(i) s.charAt s i if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        } s1>=48&&s1<58 s1>=48 s1 48 s1<58 s1 58 {
          ans=true;
        } ans=true ans true {
          System.out.println("No");
          System.exit(0);
        } System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 for(int i =a+1;i<s.length();i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }

      } int i =a+1; int i =a+1; i a+1 a 1 i<s.length() i s.length() s.length s i++ i++ i {
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }

      } {
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }

      } s1 = (int)s.charAt(i) s1 (int)s.charAt(i) s.charAt s i if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        } s1>=48&&s1<58 s1>=48 s1 48 s1<58 s1 58 {
          ans=true;
        } ans=true ans true {
          System.out.println("No");
          System.exit(0);
        } System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 if(ans){
        System.out.println("Yes");
      } ans {
        System.out.println("Yes");
      } System.out.println("Yes") System.out.println System.out System System.out "Yes" 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();
      
      int s1;
      boolean ans = true;

      if(s.charAt(a)!='-'){
        System.out.println("No");
        System.exit(0);
      }

      for(int i =0;i<a;i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }
      }

      for(int i =a+1;i<s.length();i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }

      }
      if(ans){
        System.out.println("Yes");
      }

  }
} 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();
      
      int s1;
      boolean ans = true;

      if(s.charAt(a)!='-'){
        System.out.println("No");
        System.exit(0);
      }

      for(int i =0;i<a;i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }
      }

      for(int i =a+1;i<s.length();i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }

      }
      if(ans){
        System.out.println("Yes");
      }

  }
} 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();
      
      int s1;
      boolean ans = true;

      if(s.charAt(a)!='-'){
        System.out.println("No");
        System.exit(0);
      }

      for(int i =0;i<a;i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }
      }

      for(int i =a+1;i<s.length();i++){
        s1 = (int)s.charAt(i);
        if(s1>=48&&s1<58){
          ans=true;
        }else{
          System.out.println("No");
          System.exit(0);
        }

      }
      if(ans){
        System.out.println("Yes");
      }

  }
}
