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();
      	Boolean ans1 = false;
		Boolean ans2 = false;
		
        if(S.charAt(A) == '-'){
            ans1 = true;
        }
        
        
      for (int i =0; i<A+B+1; i++){
          if(i != A){
            if(S.charAt(i)>='0' && S.charAt(i)<='9'){
            	ans2 = true;
          }
            else{
                ans2 = false;
                break;
            }
          } 
       }
      	
      if(ans1 == true && ans2 == true){
      System.out.println("Yes");
      }
      else{
       System.out.println("No");
      }
   }  	
} 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();
      	Boolean ans1 = false;
		Boolean ans2 = false;
		
        if(S.charAt(A) == '-'){
            ans1 = true;
        }
        
        
      for (int i =0; i<A+B+1; i++){
          if(i != A){
            if(S.charAt(i)>='0' && S.charAt(i)<='9'){
            	ans2 = true;
          }
            else{
                ans2 = false;
                break;
            }
          } 
       }
      	
      if(ans1 == true && ans2 == true){
      System.out.println("Yes");
      }
      else{
       System.out.println("No");
      }
   }  	
} 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();
      	Boolean ans1 = false;
		Boolean ans2 = false;
		
        if(S.charAt(A) == '-'){
            ans1 = true;
        }
        
        
      for (int i =0; i<A+B+1; i++){
          if(i != A){
            if(S.charAt(i)>='0' && S.charAt(i)<='9'){
            	ans2 = true;
          }
            else{
                ans2 = false;
                break;
            }
          } 
       }
      	
      if(ans1 == true && ans2 == true){
      System.out.println("Yes");
      }
      else{
       System.out.println("No");
      }
   } main {
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        String S = sc.next();
      	Boolean ans1 = false;
		Boolean ans2 = false;
		
        if(S.charAt(A) == '-'){
            ans1 = true;
        }
        
        
      for (int i =0; i<A+B+1; i++){
          if(i != A){
            if(S.charAt(i)>='0' && S.charAt(i)<='9'){
            	ans2 = true;
          }
            else{
                ans2 = false;
                break;
            }
          } 
       }
      	
      if(ans1 == true && ans2 == true){
      System.out.println("Yes");
      }
      else{
       System.out.println("No");
      }
   } 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 Boolean ans1 = false; ans1 false Boolean ans2 = false; ans2 false if(S.charAt(A) == '-'){
            ans1 = true;
        } S.charAt(A) == '-' S.charAt(A) S.charAt S A '-' {
            ans1 = true;
        } ans1 = true ans1 true for (int i =0; i<A+B+1; i++){
          if(i != A){
            if(S.charAt(i)>='0' && S.charAt(i)<='9'){
            	ans2 = true;
          }
            else{
                ans2 = false;
                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 {
          if(i != A){
            if(S.charAt(i)>='0' && S.charAt(i)<='9'){
            	ans2 = true;
          }
            else{
                ans2 = false;
                break;
            }
          } 
       } {
          if(i != A){
            if(S.charAt(i)>='0' && S.charAt(i)<='9'){
            	ans2 = true;
          }
            else{
                ans2 = false;
                break;
            }
          } 
       } if(i != A){
            if(S.charAt(i)>='0' && S.charAt(i)<='9'){
            	ans2 = true;
          }
            else{
                ans2 = false;
                break;
            }
          } i != A i A {
            if(S.charAt(i)>='0' && S.charAt(i)<='9'){
            	ans2 = true;
          }
            else{
                ans2 = false;
                break;
            }
          } if(S.charAt(i)>='0' && S.charAt(i)<='9'){
            	ans2 = true;
          }
            else{
                ans2 = false;
                break;
            } S.charAt(i)>='0' && S.charAt(i)<='9' S.charAt(i)>='0' S.charAt(i) S.charAt S i '0' S.charAt(i)<='9' S.charAt(i) S.charAt S i '9' {
            	ans2 = true;
          } ans2 = true ans2 true {
                ans2 = false;
                break;
            } ans2 = false ans2 false break; if(ans1 == true && ans2 == true){
      System.out.println("Yes");
      }
      else{
       System.out.println("No");
      } ans1 == true && ans2 == true ans1 == true ans1 true ans2 == true ans2 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" 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();
      	Boolean ans1 = false;
		Boolean ans2 = false;
		
        if(S.charAt(A) == '-'){
            ans1 = true;
        }
        
        
      for (int i =0; i<A+B+1; i++){
          if(i != A){
            if(S.charAt(i)>='0' && S.charAt(i)<='9'){
            	ans2 = true;
          }
            else{
                ans2 = false;
                break;
            }
          } 
       }
      	
      if(ans1 == true && ans2 == true){
      System.out.println("Yes");
      }
      else{
       System.out.println("No");
      }
   }  	
} 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();
      	Boolean ans1 = false;
		Boolean ans2 = false;
		
        if(S.charAt(A) == '-'){
            ans1 = true;
        }
        
        
      for (int i =0; i<A+B+1; i++){
          if(i != A){
            if(S.charAt(i)>='0' && S.charAt(i)<='9'){
            	ans2 = true;
          }
            else{
                ans2 = false;
                break;
            }
          } 
       }
      	
      if(ans1 == true && ans2 == true){
      System.out.println("Yes");
      }
      else{
       System.out.println("No");
      }
   }  	
} 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();
      	Boolean ans1 = false;
		Boolean ans2 = false;
		
        if(S.charAt(A) == '-'){
            ans1 = true;
        }
        
        
      for (int i =0; i<A+B+1; i++){
          if(i != A){
            if(S.charAt(i)>='0' && S.charAt(i)<='9'){
            	ans2 = true;
          }
            else{
                ans2 = false;
                break;
            }
          } 
       }
      	
      if(ans1 == true && ans2 == true){
      System.out.println("Yes");
      }
      else{
       System.out.println("No");
      }
   }  	
}