import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main
{

  public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
    String s = r.readLine();
    String[] sl = s.split("[\\s]+");
    int a = Integer.parseInt(sl[0]);
    int b = Integer.parseInt(sl[1]);
    s = r.readLine();

    String ans = "Yes";

    int i;

    for(i = 0; i < a; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    }

    //System.out.println(s.charAt(i));
    if(s.charAt(i) != '-')
    {
      ans = "No";
    }


    for(i++; i < a + b + 1; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    }

    System.out.println(ans);
  }

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main
{

  public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
    String s = r.readLine();
    String[] sl = s.split("[\\s]+");
    int a = Integer.parseInt(sl[0]);
    int b = Integer.parseInt(sl[1]);
    s = r.readLine();

    String ans = "Yes";

    int i;

    for(i = 0; i < a; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    }

    //System.out.println(s.charAt(i));
    if(s.charAt(i) != '-')
    {
      ans = "No";
    }


    for(i++; i < a + b + 1; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    }

    System.out.println(ans);
  }

} Main public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
    String s = r.readLine();
    String[] sl = s.split("[\\s]+");
    int a = Integer.parseInt(sl[0]);
    int b = Integer.parseInt(sl[1]);
    s = r.readLine();

    String ans = "Yes";

    int i;

    for(i = 0; i < a; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    }

    //System.out.println(s.charAt(i));
    if(s.charAt(i) != '-')
    {
      ans = "No";
    }


    for(i++; i < a + b + 1; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    }

    System.out.println(ans);
  } main {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
    String s = r.readLine();
    String[] sl = s.split("[\\s]+");
    int a = Integer.parseInt(sl[0]);
    int b = Integer.parseInt(sl[1]);
    s = r.readLine();

    String ans = "Yes";

    int i;

    for(i = 0; i < a; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    }

    //System.out.println(s.charAt(i));
    if(s.charAt(i) != '-')
    {
      ans = "No";
    }


    for(i++; i < a + b + 1; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    }

    System.out.println(ans);
  } BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1); r new BufferedReader(new InputStreamReader(System.in), 1) String s = r.readLine(); s r.readLine() r.readLine r String[] sl = s.split("[\\s]+"); sl s.split("[\\s]+") s.split s "[\\s]+" int a = Integer.parseInt(sl[0]); a Integer.parseInt(sl[0]) Integer.parseInt Integer sl[0] sl 0 int b = Integer.parseInt(sl[1]); b Integer.parseInt(sl[1]) Integer.parseInt Integer sl[1] sl 1 s = r.readLine() s r.readLine() r.readLine r String ans = "Yes"; ans "Yes" int i; i for(i = 0; i < a; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    } i = 0; i = 0 i 0 i < a i a i++ i++ i {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    } {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    } if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      } !('0' <= s.charAt(i) && s.charAt(i) <= '9') ('0' <= s.charAt(i) && s.charAt(i) <= '9') '0' <= s.charAt(i) '0' s.charAt(i) s.charAt s i s.charAt(i) <= '9' s.charAt(i) s.charAt s i '9' {
        ans = "No";
      } ans = "No" ans "No" if(s.charAt(i) != '-')
    {
      ans = "No";
    } s.charAt(i) != '-' s.charAt(i) s.charAt s i '-' {
      ans = "No";
    } ans = "No" ans "No" for(i++; i < a + b + 1; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    } i++; i++ i i < a + b + 1 i a + b + 1 a + b + 1 a b 1 i++ i++ i {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    } {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    } if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      } !('0' <= s.charAt(i) && s.charAt(i) <= '9') ('0' <= s.charAt(i) && s.charAt(i) <= '9') '0' <= s.charAt(i) '0' s.charAt(i) s.charAt s i s.charAt(i) <= '9' s.charAt(i) s.charAt s i '9' {
        ans = "No";
      } ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main
{

  public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
    String s = r.readLine();
    String[] sl = s.split("[\\s]+");
    int a = Integer.parseInt(sl[0]);
    int b = Integer.parseInt(sl[1]);
    s = r.readLine();

    String ans = "Yes";

    int i;

    for(i = 0; i < a; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    }

    //System.out.println(s.charAt(i));
    if(s.charAt(i) != '-')
    {
      ans = "No";
    }


    for(i++; i < a + b + 1; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    }

    System.out.println(ans);
  }

} public class Main
{

  public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
    String s = r.readLine();
    String[] sl = s.split("[\\s]+");
    int a = Integer.parseInt(sl[0]);
    int b = Integer.parseInt(sl[1]);
    s = r.readLine();

    String ans = "Yes";

    int i;

    for(i = 0; i < a; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    }

    //System.out.println(s.charAt(i));
    if(s.charAt(i) != '-')
    {
      ans = "No";
    }


    for(i++; i < a + b + 1; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    }

    System.out.println(ans);
  }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main
{

  public static void main(String[] args) throws IOException
  {
    BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1);
    String s = r.readLine();
    String[] sl = s.split("[\\s]+");
    int a = Integer.parseInt(sl[0]);
    int b = Integer.parseInt(sl[1]);
    s = r.readLine();

    String ans = "Yes";

    int i;

    for(i = 0; i < a; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    }

    //System.out.println(s.charAt(i));
    if(s.charAt(i) != '-')
    {
      ans = "No";
    }


    for(i++; i < a + b + 1; i++)
    {
      //System.out.println(s.charAt(i));
      if(!('0' <= s.charAt(i) && s.charAt(i) <= '9'))
      {
        ans = "No";
      }
    }

    System.out.println(ans);
  }

}
