#include <bits/stdc++.h>
using namespace std;
int i, j, k, n, m, x, y, xx[110], yy[110];
char p[110];
int main() {
  scanf("%d%d", &x, &y);
  scanf("%s", p + 1);
  n = strlen(p + 1);
  for (i = 1; i <= n; i++) {
    xx[i] = xx[i - 1], yy[i] = yy[i - 1];
    if (p[i] == 'U') yy[i]++;
    if (p[i] == 'D') yy[i]--;
    if (p[i] == 'L') xx[i]--;
    if (p[i] == 'R') xx[i]++;
  }
  for (i = 0; i <= n; i++) {
    int X = x - xx[i], Y = y - yy[i];
    if ((!xx[n] || X % xx[n] == 0) && (!yy[n] || Y % yy[n] == 0)) {
      int F = 0;
      if (!xx[n] && yy[n] && Y / yy[n] >= 0 && !X) F = 1;
      if (!yy[n] && xx[n] && X / xx[n] >= 0 && !Y) F = 1;
      if (xx[n] && yy[n] && X / xx[n] == Y / yy[n] && X / xx[n] >= 0) F = 1;
      if (!xx[n] && !yy[n] && !X && !Y) F = 1;
      if (!F) continue;
      printf("Yes\n");
      return 0;
    }
  }
  printf("No\n");
  return 0;
}
