#include <bits/stdc++.h>
using namespace std;
const int maxN = 1e5 + 10;
int dx[maxN], dy[maxN];
int main() {
  int x, y;
  char ch;
  scanf("%d%d\n%c", &x, &y, &ch);
  int it = 1;
  while (ch != '\n') {
    if (ch == 'U') {
      dx[it] = dx[it - 1];
      dy[it] = dy[it - 1] + 1;
    } else if (ch == 'D') {
      dx[it] = dx[it - 1];
      dy[it] = dy[it - 1] - 1;
    } else if (ch == 'R') {
      dx[it] = dx[it - 1] + 1;
      dy[it] = dy[it - 1];
    } else {
      dx[it] = dx[it - 1] - 1;
      dy[it] = dy[it - 1];
    }
    scanf("%c", &ch);
    it++;
  }
  for (int i = 0; i < it; ++i) {
    int mvx = x - dx[i];
    int mvy = y - dy[i];
    if (dx[it - 1] == 0 && mvx != 0) continue;
    if (dy[it - 1] == 0 && mvy != 0) continue;
    if (mvx == 0 || (mvx % dx[it - 1] == 0 && mvx / dx[it - 1] > 0))
      if (mvy == 0 || (mvy % dy[it - 1] == 0 && mvy / dy[it - 1] > 0)) {
        if (dx[it - 1] != 0 && dy[it - 1] != 0 &&
            mvx / dx[it - 1] != mvy / dy[it - 1])
          continue;
        printf("Yes\n");
        return 0;
      }
  }
  printf("No\n");
  return 0;
}
