using System;
class Program
{
    private bool isnumber(string s,int k)
    {
        char[] num = { '0','1','2','3','4','5','6','7','8','9'};
        int i = Array.IndexOf(num,s[k]);
        return i > 0 ? true : false;
    }
    public static void Main()
    {
        Program prog =new Program();
        string[] str = Console.ReadLine().Split(' ');
        int a, b;
        a = int.Parse(str[0]);
        b = int.Parse(str[1]);
        string s = Console.ReadLine();
        int f = 1;
        if (s[a] != '-')
            f = 0;
        for (int i = 0; i < a; i++)
        {
            if (!prog.isnumber(s, i))
            {
                f = 0;
                break;
            }
        }
        if (f!= 1)
        {
            for (int i = a + 1; i < s.Length; i++)
            {
                if (!prog.isnumber(s, i))
                {
                    f = 0;
                    break;
                }
            }
        }
        if (f == 1)
            Console.WriteLine("Yes");
        else
            Console.WriteLine("No");
    }
}