#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x, y;
  char str[109];
  scanf("%I64d %I64d", &x, &y);
  getchar();
  gets(str);
  long long oncex = 0, oncey = 0;
  for (int i = 0; i < strlen(str); i++) {
    if (str[i] == 'U')
      oncey++;
    else if (str[i] == 'D')
      oncey--;
    else if (str[i] == 'L')
      oncex--;
    else if (str[i] == 'R')
      oncex++;
  }
  int flag = 0;
  long long tmpx = 0, tmpy = 0;
  if (oncex == 0 && oncey == 0) {
    if (x - tmpx == 0 && y - tmpy == 0) {
      flag = 1;
    }
  } else if (oncey == 0) {
    if ((x - tmpx) % oncex == 0 && (x - tmpx) * oncex >= 0 && y - tmpy == 0) {
      flag = 1;
    }
  } else if (oncex == 0) {
    if ((y - tmpy) % oncey == 0 && (y - tmpy) * oncey >= 0 && x - tmpx == 0) {
      flag = 1;
    }
  } else {
    if ((x - tmpx) % oncex == 0 && (x - tmpx) * oncex >= 0 &&
        (y - tmpy) % oncey == 0 && (y - tmpy) * oncey >= 0 &&
        (x - tmpx) / oncex == (y - tmpy) / oncey) {
      flag = 1;
    }
  }
  for (int i = 0; i < strlen(str); i++) {
    if (str[i] == 'U')
      tmpy++;
    else if (str[i] == 'D')
      tmpy--;
    else if (str[i] == 'L')
      tmpx--;
    else if (str[i] == 'R')
      tmpx++;
    if (oncex == 0 && oncey == 0) {
      if (x - tmpx == 0 && y - tmpy == 0) {
        flag = 1;
        break;
      }
    } else if (oncey == 0) {
      if ((x - tmpx) % oncex == 0 && (x - tmpx) * oncex >= 0 && y - tmpy == 0) {
        flag = 1;
        break;
      }
    } else if (oncex == 0) {
      if ((y - tmpy) % oncey == 0 && (y - tmpy) * oncey >= 0 && x - tmpx == 0) {
        flag = 1;
        break;
      }
    } else {
      if ((x - tmpx) % oncex == 0 && (x - tmpx) * oncex >= 0 &&
          (y - tmpy) % oncey == 0 && (y - tmpy) * oncey >= 0 &&
          (x - tmpx) / oncex == (y - tmpy) / oncey) {
        flag = 1;
        break;
      }
    }
  }
  if (flag)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
