a, b = map(int, input().split())
s = input()
flag = True
for i, ss in enumerate(s):
  if i == a:
    if ss != '-':
      flag = False
  else:
    if ss not in range(ord('a'), ord('z')+1):
      flag = False

if flag:
  print('Yes')
else:
  print('No')