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

class Main
{
	public static void main(String[] args) throws Exception
	{
		invoke(System.in);
	}

	public static void	invoke(InputStream is) throws IOException
	{
		// input
		BufferedReader	reader = new BufferedReader(new InputStreamReader(is));
		String	line = reader.readLine();
		String[]	va = line.split(" ");
		int a = Integer.parseInt(va[0]);
		int b = Integer.parseInt(va[1]);

		line = reader.readLine();
		char[]	ca = line.toCharArray();

		try
		{
			int	i;
			for (i = 0; i < a; ++i)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			}

			if (ca[i++] != '-')
			{
				System.out.println("No");
				return;
			}

			for (int j = 0; j < b; ++i, ++j)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			}
			System.out.println("Yes");
		}
		catch (Exception e)
		{
			System.out.println("No");
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.InputStreamReader; InputStreamReader java.io class Main
{
	public static void main(String[] args) throws Exception
	{
		invoke(System.in);
	}

	public static void	invoke(InputStream is) throws IOException
	{
		// input
		BufferedReader	reader = new BufferedReader(new InputStreamReader(is));
		String	line = reader.readLine();
		String[]	va = line.split(" ");
		int a = Integer.parseInt(va[0]);
		int b = Integer.parseInt(va[1]);

		line = reader.readLine();
		char[]	ca = line.toCharArray();

		try
		{
			int	i;
			for (i = 0; i < a; ++i)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			}

			if (ca[i++] != '-')
			{
				System.out.println("No");
				return;
			}

			for (int j = 0; j < b; ++i, ++j)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			}
			System.out.println("Yes");
		}
		catch (Exception e)
		{
			System.out.println("No");
		}
	}

} Main public static void main(String[] args) throws Exception
	{
		invoke(System.in);
	} main {
		invoke(System.in);
	} invoke(System.in) invoke System.in System System.in String[] args args public static void	invoke(InputStream is) throws IOException
	{
		// input
		BufferedReader	reader = new BufferedReader(new InputStreamReader(is));
		String	line = reader.readLine();
		String[]	va = line.split(" ");
		int a = Integer.parseInt(va[0]);
		int b = Integer.parseInt(va[1]);

		line = reader.readLine();
		char[]	ca = line.toCharArray();

		try
		{
			int	i;
			for (i = 0; i < a; ++i)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			}

			if (ca[i++] != '-')
			{
				System.out.println("No");
				return;
			}

			for (int j = 0; j < b; ++i, ++j)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			}
			System.out.println("Yes");
		}
		catch (Exception e)
		{
			System.out.println("No");
		}
	} invoke {
		// input
		BufferedReader	reader = new BufferedReader(new InputStreamReader(is));
		String	line = reader.readLine();
		String[]	va = line.split(" ");
		int a = Integer.parseInt(va[0]);
		int b = Integer.parseInt(va[1]);

		line = reader.readLine();
		char[]	ca = line.toCharArray();

		try
		{
			int	i;
			for (i = 0; i < a; ++i)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			}

			if (ca[i++] != '-')
			{
				System.out.println("No");
				return;
			}

			for (int j = 0; j < b; ++i, ++j)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			}
			System.out.println("Yes");
		}
		catch (Exception e)
		{
			System.out.println("No");
		}
	} BufferedReader	reader = new BufferedReader(new InputStreamReader(is)); reader new BufferedReader(new InputStreamReader(is)) String	line = reader.readLine(); line reader.readLine() reader.readLine reader String[]	va = line.split(" "); va line.split(" ") line.split line " " int a = Integer.parseInt(va[0]); a Integer.parseInt(va[0]) Integer.parseInt Integer va[0] va 0 int b = Integer.parseInt(va[1]); b Integer.parseInt(va[1]) Integer.parseInt Integer va[1] va 1 line = reader.readLine() line reader.readLine() reader.readLine reader char[]	ca = line.toCharArray(); ca line.toCharArray() line.toCharArray line try
		{
			int	i;
			for (i = 0; i < a; ++i)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			}

			if (ca[i++] != '-')
			{
				System.out.println("No");
				return;
			}

			for (int j = 0; j < b; ++i, ++j)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			}
			System.out.println("Yes");
		}
		catch (Exception e)
		{
			System.out.println("No");
		} catch (Exception e)
		{
			System.out.println("No");
		} Exception e {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" {
			int	i;
			for (i = 0; i < a; ++i)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			}

			if (ca[i++] != '-')
			{
				System.out.println("No");
				return;
			}

			for (int j = 0; j < b; ++i, ++j)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			}
			System.out.println("Yes");
		} int	i; i for (i = 0; i < a; ++i)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			} i = 0; i = 0 i 0 i < a i a ++i ++i i {
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			} {
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			} if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				} '0' <= ca[i] && ca[i] <= '9' '0' <= ca[i] '0' ca[i] ca i ca[i] <= '9' ca[i] ca i '9' {

				} {
					System.out.println("No");
					return;
				} System.out.println("No") System.out.println System.out System System.out "No" return; if (ca[i++] != '-')
			{
				System.out.println("No");
				return;
			} ca[i++] != '-' ca[i++] ca i++ i '-' {
				System.out.println("No");
				return;
			} System.out.println("No") System.out.println System.out System System.out "No" return; for (int j = 0; j < b; ++i, ++j)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			} int j = 0; int j = 0; j 0 j < b j b ++i, ++j ++i i ++j j {
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			} {
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			} if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				} '0' <= ca[i] && ca[i] <= '9' '0' <= ca[i] '0' ca[i] ca i ca[i] <= '9' ca[i] ca i '9' {

				} {
					System.out.println("No");
					return;
				} System.out.println("No") System.out.println System.out System System.out "No" return; System.out.println("Yes") System.out.println System.out System System.out "Yes" InputStream is is
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

class Main
{
	public static void main(String[] args) throws Exception
	{
		invoke(System.in);
	}

	public static void	invoke(InputStream is) throws IOException
	{
		// input
		BufferedReader	reader = new BufferedReader(new InputStreamReader(is));
		String	line = reader.readLine();
		String[]	va = line.split(" ");
		int a = Integer.parseInt(va[0]);
		int b = Integer.parseInt(va[1]);

		line = reader.readLine();
		char[]	ca = line.toCharArray();

		try
		{
			int	i;
			for (i = 0; i < a; ++i)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			}

			if (ca[i++] != '-')
			{
				System.out.println("No");
				return;
			}

			for (int j = 0; j < b; ++i, ++j)
			{
				if ('0' <= ca[i] && ca[i] <= '9')
				{

				}
				else
				{
					System.out.println("No");
					return;
				}
			}
			System.out.println("Yes");
		}
		catch (Exception e)
		{
			System.out.println("No");
		}
	}

}