import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

  		int nums[] = new int[2]; 
      	String str;
      
      	int stack;
      	boolean judge = true;
      	
      	for(int i = 0;i < 2; i++){
        	nums[i] = sc.nextInt();
        }
      

      	str = sc.next();
      	
          for(int i = 0; i < nums[0]; i++){
           	stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          }
          
          if(str.charAt(nums[0]) != '-') judge = false;
     
          for(int i = nums[0] + 1; i < nums[0] + nums[1] + 1; i++){
            stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          }
          if(judge) 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 nums[] = new int[2]; 
      	String str;
      
      	int stack;
      	boolean judge = true;
      	
      	for(int i = 0;i < 2; i++){
        	nums[i] = sc.nextInt();
        }
      

      	str = sc.next();
      	
          for(int i = 0; i < nums[0]; i++){
           	stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          }
          
          if(str.charAt(nums[0]) != '-') judge = false;
     
          for(int i = nums[0] + 1; i < nums[0] + nums[1] + 1; i++){
            stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          }
          if(judge) System.out.println("Yes");
          else System.out.println("No");
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

  		int nums[] = new int[2]; 
      	String str;
      
      	int stack;
      	boolean judge = true;
      	
      	for(int i = 0;i < 2; i++){
        	nums[i] = sc.nextInt();
        }
      

      	str = sc.next();
      	
          for(int i = 0; i < nums[0]; i++){
           	stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          }
          
          if(str.charAt(nums[0]) != '-') judge = false;
     
          for(int i = nums[0] + 1; i < nums[0] + nums[1] + 1; i++){
            stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          }
          if(judge) System.out.println("Yes");
          else System.out.println("No");
	} main {
		Scanner sc = new Scanner(System.in);

  		int nums[] = new int[2]; 
      	String str;
      
      	int stack;
      	boolean judge = true;
      	
      	for(int i = 0;i < 2; i++){
        	nums[i] = sc.nextInt();
        }
      

      	str = sc.next();
      	
          for(int i = 0; i < nums[0]; i++){
           	stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          }
          
          if(str.charAt(nums[0]) != '-') judge = false;
     
          for(int i = nums[0] + 1; i < nums[0] + nums[1] + 1; i++){
            stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          }
          if(judge) System.out.println("Yes");
          else System.out.println("No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int nums[] = new int[2]; nums new int[2] 2 String str; str int stack; stack boolean judge = true; judge true for(int i = 0;i < 2; i++){
        	nums[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
        	nums[i] = sc.nextInt();
        } {
        	nums[i] = sc.nextInt();
        } nums[i] = sc.nextInt() nums[i] nums i sc.nextInt() sc.nextInt sc str = sc.next() str sc.next() sc.next sc for(int i = 0; i < nums[0]; i++){
           	stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          } int i = 0; int i = 0; i 0 i < nums[0] i nums[0] nums 0 i++ i++ i {
           	stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          } {
           	stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          } stack = (int)str.charAt(i) stack (int)str.charAt(i) str.charAt str i if(stack < 48 || 57 < stack) judge = false; stack < 48 || 57 < stack stack < 48 stack 48 57 < stack 57 stack judge = false judge false if(str.charAt(nums[0]) != '-') judge = false; str.charAt(nums[0]) != '-' str.charAt(nums[0]) str.charAt str nums[0] nums 0 '-' judge = false judge false for(int i = nums[0] + 1; i < nums[0] + nums[1] + 1; i++){
            stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          } int i = nums[0] + 1; int i = nums[0] + 1; i nums[0] + 1 nums[0] nums 0 1 i < nums[0] + nums[1] + 1 i nums[0] + nums[1] + 1 nums[0] + nums[1] + 1 nums[0] nums 0 nums[1] nums 1 1 i++ i++ i {
            stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          } {
            stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          } stack = (int)str.charAt(i) stack (int)str.charAt(i) str.charAt str i if(stack < 48 || 57 < stack) judge = false; stack < 48 || 57 < stack stack < 48 stack 48 57 < stack 57 stack judge = false judge false if(judge) System.out.println("Yes");
          else System.out.println("No"); judge System.out.println("Yes") System.out.println System.out System System.out "Yes" 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 nums[] = new int[2]; 
      	String str;
      
      	int stack;
      	boolean judge = true;
      	
      	for(int i = 0;i < 2; i++){
        	nums[i] = sc.nextInt();
        }
      

      	str = sc.next();
      	
          for(int i = 0; i < nums[0]; i++){
           	stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          }
          
          if(str.charAt(nums[0]) != '-') judge = false;
     
          for(int i = nums[0] + 1; i < nums[0] + nums[1] + 1; i++){
            stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          }
          if(judge) 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 nums[] = new int[2]; 
      	String str;
      
      	int stack;
      	boolean judge = true;
      	
      	for(int i = 0;i < 2; i++){
        	nums[i] = sc.nextInt();
        }
      

      	str = sc.next();
      	
          for(int i = 0; i < nums[0]; i++){
           	stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          }
          
          if(str.charAt(nums[0]) != '-') judge = false;
     
          for(int i = nums[0] + 1; i < nums[0] + nums[1] + 1; i++){
            stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          }
          if(judge) 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 nums[] = new int[2]; 
      	String str;
      
      	int stack;
      	boolean judge = true;
      	
      	for(int i = 0;i < 2; i++){
        	nums[i] = sc.nextInt();
        }
      

      	str = sc.next();
      	
          for(int i = 0; i < nums[0]; i++){
           	stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          }
          
          if(str.charAt(nums[0]) != '-') judge = false;
     
          for(int i = nums[0] + 1; i < nums[0] + nums[1] + 1; i++){
            stack = (int)str.charAt(i);
            if(stack < 48 || 57 < stack) judge = false;
          }
          if(judge) System.out.println("Yes");
          else System.out.println("No");
	}
}
