#include <bits/stdc++.h>
using namespace std;
int main() {
  int dx[100] = {0}, dy[100] = {0};
  float tx = 0, ty = 0;
  int a, b;
  char str[101];
  scanf("%d %d", &a, &b);
  scanf("%s", str);
  int len = strlen(str);
  if (str[0] == 'U') dy[0] = 1;
  if (str[0] == 'D') dy[0] = -1;
  if (str[0] == 'R') dx[0] = 1;
  if (str[0] == 'L') dx[0] = -1;
  for (int i = 1; str[i]; i++) {
    if (str[i] == 'U') {
      dy[i] = dy[i - 1] + 1;
      dx[i] = dx[i - 1];
    } else if (str[i] == 'D') {
      dy[i] = dy[i - 1] - 1;
      dx[i] = dx[i - 1];
    } else if (str[i] == 'R') {
      dx[i] = dx[i - 1] + 1;
      dy[i] = dy[i - 1];
    } else if (str[i] == 'L') {
      dx[i] = dx[i - 1] - 1;
      dy[i] = dy[i - 1];
    }
  }
  tx = dx[len - 1];
  ty = dy[len - 1];
  int p, q;
  float r, s;
  bool flag = false;
  for (int i = 0; str[i]; i++) {
    if (tx != 0) r = (float)(a - dx[i]) / tx;
    p = r;
    if (ty != 0) s = (float)(b - dy[i]) / ty;
    q = s;
    if (a == 0 && b == 0) {
      flag = true;
      break;
    }
    if (r < 0 || s < 0) continue;
    if ((tx != 0 && ty != 0 && (r == s) && (r - p == 0 && s - q == 0)) ||
        (tx == 0 && ty != 0 && a == dx[i] && s - q == 0) ||
        (tx != 0 && ty == 0 && b == dy[i] && r - p == 0.0) ||
        (tx == 0 && ty == 0 && b == dy[i] && a == dx[i])) {
      flag = true;
      break;
    }
  }
  if (flag == true)
    printf("Yes");
  else
    printf("No");
  return 0;
}
