import java.util.*;
class Main{

     public static void main(String []args){
      Scanner scan = new Scanner(System.in);
      int m = scan.nextInt() ;
      int n = scan.nextInt() ;
       String s = scan.next();
      char arr[] = s.toCharArray();
      //for(int i = 0 ; i < m+n+1 ; i++){
       //   arr[i] = scan.next().charAt(0);
      //}
      int count = 0 ; 
      if(arr[m] == '-'){
          for(int i = 0 ; i<m+n+1 ; i++){
              if(i == m){
                  continue ;
              }
              if(arr[i]>='0' && arr[i]<='9'){
                  count++;
              }
          }
        	//System.out.println(count);
           if(count == m+n){
                System.out.println("Yes");
             }else{
            System.out.println("No");
             }
      
      }else{
          System.out.println("No");
      }   
    }
} import java.util.*; util.* java class Main{

     public static void main(String []args){
      Scanner scan = new Scanner(System.in);
      int m = scan.nextInt() ;
      int n = scan.nextInt() ;
       String s = scan.next();
      char arr[] = s.toCharArray();
      //for(int i = 0 ; i < m+n+1 ; i++){
       //   arr[i] = scan.next().charAt(0);
      //}
      int count = 0 ; 
      if(arr[m] == '-'){
          for(int i = 0 ; i<m+n+1 ; i++){
              if(i == m){
                  continue ;
              }
              if(arr[i]>='0' && arr[i]<='9'){
                  count++;
              }
          }
        	//System.out.println(count);
           if(count == m+n){
                System.out.println("Yes");
             }else{
            System.out.println("No");
             }
      
      }else{
          System.out.println("No");
      }   
    }
} Main public static void main(String []args){
      Scanner scan = new Scanner(System.in);
      int m = scan.nextInt() ;
      int n = scan.nextInt() ;
       String s = scan.next();
      char arr[] = s.toCharArray();
      //for(int i = 0 ; i < m+n+1 ; i++){
       //   arr[i] = scan.next().charAt(0);
      //}
      int count = 0 ; 
      if(arr[m] == '-'){
          for(int i = 0 ; i<m+n+1 ; i++){
              if(i == m){
                  continue ;
              }
              if(arr[i]>='0' && arr[i]<='9'){
                  count++;
              }
          }
        	//System.out.println(count);
           if(count == m+n){
                System.out.println("Yes");
             }else{
            System.out.println("No");
             }
      
      }else{
          System.out.println("No");
      }   
    } main {
      Scanner scan = new Scanner(System.in);
      int m = scan.nextInt() ;
      int n = scan.nextInt() ;
       String s = scan.next();
      char arr[] = s.toCharArray();
      //for(int i = 0 ; i < m+n+1 ; i++){
       //   arr[i] = scan.next().charAt(0);
      //}
      int count = 0 ; 
      if(arr[m] == '-'){
          for(int i = 0 ; i<m+n+1 ; i++){
              if(i == m){
                  continue ;
              }
              if(arr[i]>='0' && arr[i]<='9'){
                  count++;
              }
          }
        	//System.out.println(count);
           if(count == m+n){
                System.out.println("Yes");
             }else{
            System.out.println("No");
             }
      
      }else{
          System.out.println("No");
      }   
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int m = scan.nextInt() ; m scan.nextInt() scan.nextInt scan int n = scan.nextInt() ; n scan.nextInt() scan.nextInt scan String s = scan.next(); s scan.next() scan.next scan char arr[] = s.toCharArray(); arr s.toCharArray() s.toCharArray s int count = 0 ; count 0 if(arr[m] == '-'){
          for(int i = 0 ; i<m+n+1 ; i++){
              if(i == m){
                  continue ;
              }
              if(arr[i]>='0' && arr[i]<='9'){
                  count++;
              }
          }
        	//System.out.println(count);
           if(count == m+n){
                System.out.println("Yes");
             }else{
            System.out.println("No");
             }
      
      }else{
          System.out.println("No");
      } arr[m] == '-' arr[m] arr m '-' {
          for(int i = 0 ; i<m+n+1 ; i++){
              if(i == m){
                  continue ;
              }
              if(arr[i]>='0' && arr[i]<='9'){
                  count++;
              }
          }
        	//System.out.println(count);
           if(count == m+n){
                System.out.println("Yes");
             }else{
            System.out.println("No");
             }
      
      } for(int i = 0 ; i<m+n+1 ; i++){
              if(i == m){
                  continue ;
              }
              if(arr[i]>='0' && arr[i]<='9'){
                  count++;
              }
          } int i = 0 ; int i = 0 ; i 0 i<m+n+1 i m+n+1 m+n+1 m n 1 i++ i++ i {
              if(i == m){
                  continue ;
              }
              if(arr[i]>='0' && arr[i]<='9'){
                  count++;
              }
          } {
              if(i == m){
                  continue ;
              }
              if(arr[i]>='0' && arr[i]<='9'){
                  count++;
              }
          } if(i == m){
                  continue ;
              } i == m i m {
                  continue ;
              } continue ; if(arr[i]>='0' && arr[i]<='9'){
                  count++;
              } arr[i]>='0' && arr[i]<='9' arr[i]>='0' arr[i] arr i '0' arr[i]<='9' arr[i] arr i '9' {
                  count++;
              } count++ count if(count == m+n){
                System.out.println("Yes");
             }else{
            System.out.println("No");
             } count == m+n count m+n m n {
                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" {
          System.out.println("No");
      } System.out.println("No") System.out.println System.out System System.out "No" String []args args
import java.util.*;
class Main{

     public static void main(String []args){
      Scanner scan = new Scanner(System.in);
      int m = scan.nextInt() ;
      int n = scan.nextInt() ;
       String s = scan.next();
      char arr[] = s.toCharArray();
      //for(int i = 0 ; i < m+n+1 ; i++){
       //   arr[i] = scan.next().charAt(0);
      //}
      int count = 0 ; 
      if(arr[m] == '-'){
          for(int i = 0 ; i<m+n+1 ; i++){
              if(i == m){
                  continue ;
              }
              if(arr[i]>='0' && arr[i]<='9'){
                  count++;
              }
          }
        	//System.out.println(count);
           if(count == m+n){
                System.out.println("Yes");
             }else{
            System.out.println("No");
             }
      
      }else{
          System.out.println("No");
      }   
    }
}