#include <bits/stdc++.h>
using namespace std;
struct P {
  int x, y;
};
char s[105];
P ps[105];
int abs(int v) { return v < 0 ? -v : v; }
int main() {
  int a, b;
  scanf("%d %d", &a, &b);
  scanf("%s", s);
  int dx = 0;
  int dy = 0;
  int len = strlen(s);
  for (int i = 0; i < len; ++i) {
    if (s[i] == 'U')
      dy++;
    else if (s[i] == 'D')
      dy--;
    else if (s[i] == 'L')
      dx--;
    else if (s[i] == 'R')
      dx++;
    ps[i + 1].x = dx;
    ps[i + 1].y = dy;
  }
  bool yes = false;
  for (int i = 0; i < len + 1; ++i) {
    int c1 = ps[len].x == 0 ? 0 : (a - ps[i].x) / ps[len].x;
    int c2 = ps[len].y == 0 ? 0 : (b - ps[i].y) / ps[len].y;
    if (c1 == 0)
      c1 = c2;
    else if (c2 == 0)
      c2 = c1;
    yes = yes || c1 == c2 && c1 >= 0 && c2 >= 0 &&
                     ps[i].x + c1 * ps[len].x == a &&
                     ps[i].y + c2 * ps[len].y == b;
  }
  printf("%s\n", yes ? "Yes" : "No");
  return 0;
}
