import java.util.*;
public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    boolean han=true;
    int a=sc.nextInt();
    int b=sc.nextInt();
    char[] s=sc.next().toCharArray();
    for(int i=0;i<a;i++)
      if(s[i]=='-') {
        System.out.println("No");
        han=false;
        if(han==false)break;
      }
    if(han==true)
      if(s[a]!='-') {
        System.out.println("No");
        han=false;
      }
    if(han==true)
      for(int i=a+1;i<a+b+1;i++)
        if(s[i]=='-') {
          System.out.println("No");
          han=false;
          if(han==false)break;
        }
    if(han==true) System.out.println("Yes");
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    boolean han=true;
    int a=sc.nextInt();
    int b=sc.nextInt();
    char[] s=sc.next().toCharArray();
    for(int i=0;i<a;i++)
      if(s[i]=='-') {
        System.out.println("No");
        han=false;
        if(han==false)break;
      }
    if(han==true)
      if(s[a]!='-') {
        System.out.println("No");
        han=false;
      }
    if(han==true)
      for(int i=a+1;i<a+b+1;i++)
        if(s[i]=='-') {
          System.out.println("No");
          han=false;
          if(han==false)break;
        }
    if(han==true) System.out.println("Yes");
  }
} Main public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    boolean han=true;
    int a=sc.nextInt();
    int b=sc.nextInt();
    char[] s=sc.next().toCharArray();
    for(int i=0;i<a;i++)
      if(s[i]=='-') {
        System.out.println("No");
        han=false;
        if(han==false)break;
      }
    if(han==true)
      if(s[a]!='-') {
        System.out.println("No");
        han=false;
      }
    if(han==true)
      for(int i=a+1;i<a+b+1;i++)
        if(s[i]=='-') {
          System.out.println("No");
          han=false;
          if(han==false)break;
        }
    if(han==true) System.out.println("Yes");
  } main {
    Scanner sc=new Scanner(System.in);
    boolean han=true;
    int a=sc.nextInt();
    int b=sc.nextInt();
    char[] s=sc.next().toCharArray();
    for(int i=0;i<a;i++)
      if(s[i]=='-') {
        System.out.println("No");
        han=false;
        if(han==false)break;
      }
    if(han==true)
      if(s[a]!='-') {
        System.out.println("No");
        han=false;
      }
    if(han==true)
      for(int i=a+1;i<a+b+1;i++)
        if(s[i]=='-') {
          System.out.println("No");
          han=false;
          if(han==false)break;
        }
    if(han==true) System.out.println("Yes");
  } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) boolean han=true; han true int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int b=sc.nextInt(); b sc.nextInt() sc.nextInt sc char[] s=sc.next().toCharArray(); s sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc for(int i=0;i<a;i++)
      if(s[i]=='-') {
        System.out.println("No");
        han=false;
        if(han==false)break;
      } int i=0; int i=0; i 0 i<a i a i++ i++ i if(s[i]=='-') {
        System.out.println("No");
        han=false;
        if(han==false)break;
      } if(s[i]=='-') {
        System.out.println("No");
        han=false;
        if(han==false)break;
      } s[i]=='-' s[i] s i '-' {
        System.out.println("No");
        han=false;
        if(han==false)break;
      } System.out.println("No") System.out.println System.out System System.out "No" han=false han false if(han==false)break; han==false han false break; if(han==true)
      if(s[a]!='-') {
        System.out.println("No");
        han=false;
      } han==true han true if(s[a]!='-') {
        System.out.println("No");
        han=false;
      } s[a]!='-' s[a] s a '-' {
        System.out.println("No");
        han=false;
      } System.out.println("No") System.out.println System.out System System.out "No" han=false han false if(han==true)
      for(int i=a+1;i<a+b+1;i++)
        if(s[i]=='-') {
          System.out.println("No");
          han=false;
          if(han==false)break;
        } han==true han true for(int i=a+1;i<a+b+1;i++)
        if(s[i]=='-') {
          System.out.println("No");
          han=false;
          if(han==false)break;
        } int i=a+1; int i=a+1; i a+1 a 1 i<a+b+1 i a+b+1 a+b+1 a b 1 i++ i++ i if(s[i]=='-') {
          System.out.println("No");
          han=false;
          if(han==false)break;
        } if(s[i]=='-') {
          System.out.println("No");
          han=false;
          if(han==false)break;
        } s[i]=='-' s[i] s i '-' {
          System.out.println("No");
          han=false;
          if(han==false)break;
        } System.out.println("No") System.out.println System.out System System.out "No" han=false han false if(han==false)break; han==false han false break; if(han==true) System.out.println("Yes"); han==true han true 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);
    boolean han=true;
    int a=sc.nextInt();
    int b=sc.nextInt();
    char[] s=sc.next().toCharArray();
    for(int i=0;i<a;i++)
      if(s[i]=='-') {
        System.out.println("No");
        han=false;
        if(han==false)break;
      }
    if(han==true)
      if(s[a]!='-') {
        System.out.println("No");
        han=false;
      }
    if(han==true)
      for(int i=a+1;i<a+b+1;i++)
        if(s[i]=='-') {
          System.out.println("No");
          han=false;
          if(han==false)break;
        }
    if(han==true) System.out.println("Yes");
  }
} public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    boolean han=true;
    int a=sc.nextInt();
    int b=sc.nextInt();
    char[] s=sc.next().toCharArray();
    for(int i=0;i<a;i++)
      if(s[i]=='-') {
        System.out.println("No");
        han=false;
        if(han==false)break;
      }
    if(han==true)
      if(s[a]!='-') {
        System.out.println("No");
        han=false;
      }
    if(han==true)
      for(int i=a+1;i<a+b+1;i++)
        if(s[i]=='-') {
          System.out.println("No");
          han=false;
          if(han==false)break;
        }
    if(han==true) System.out.println("Yes");
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    boolean han=true;
    int a=sc.nextInt();
    int b=sc.nextInt();
    char[] s=sc.next().toCharArray();
    for(int i=0;i<a;i++)
      if(s[i]=='-') {
        System.out.println("No");
        han=false;
        if(han==false)break;
      }
    if(han==true)
      if(s[a]!='-') {
        System.out.println("No");
        han=false;
      }
    if(han==true)
      for(int i=a+1;i<a+b+1;i++)
        if(s[i]=='-') {
          System.out.println("No");
          han=false;
          if(han==false)break;
        }
    if(han==true) System.out.println("Yes");
  }
}