#include <bits/stdc++.h>
int main() {
  int a, b;
  char s[102];
  scanf("%d %d %s", &a, &b, s);
  int vx[102], vy[102], xd, yd, slen;
  vx[0] = 0;
  vy[0] = 0;
  for (slen = 0; s[slen] != '\0'; slen++) {
    vx[slen + 1] = vx[slen];
    vy[slen + 1] = vy[slen];
    if (s[slen] == 'U') vy[slen + 1]++;
    if (s[slen] == 'D') vy[slen + 1]--;
    if (s[slen] == 'L') vx[slen + 1]--;
    if (s[slen] == 'R') vx[slen + 1]++;
  }
  xd = vx[slen];
  yd = vy[slen];
  int aa, bb, t;
  for (int i = 0; i < slen; i++) {
    if (xd) {
      t = (a - vx[i]) / xd;
    } else if (yd) {
      t = (b - vy[i]) / yd;
    } else {
      t = 0;
    }
    if (t > 0) {
      aa = a - xd * t;
      bb = b - yd * t;
    } else {
      aa = a;
      bb = b;
    }
    if ((aa == vx[i] && bb == vy[i])) {
      printf("Yes\n");
      return 0;
    }
  }
  printf("No\n");
  return 0;
}
