#include <bits/stdc++.h>
using namespace std;
long long x[110], y[110], x_end, y_end, len;
char s[110];
string check() {
  int i;
  for (i = 0; i < len; i++)
    if ((x[i] == x_end) && (y[i] == y_end)) return "Yes";
  if ((x[len] == 0) && (y[len] == 0)) {
    return "No";
  }
  for (i = 0; i < len; i++) {
    if ((x[len] * y_end - y[i] * x[len] == y[len] * x_end - y[len] * x[i]) &&
        (y[len] * y_end - y[i] * y[len] + x[len] * x_end - x[len] * x[i] >= 0))
      if (y[len] == 0) {
        if (((x[i] - x_end) % x[len]) == 0) return "Yes";
      } else if (((y[i] - y_end) % y[len]) == 0)
        return "Yes";
  }
  return "No";
}
int main() {
  cin >> x_end >> y_end;
  cin >> s;
  len = strlen(s);
  x[0] = 0;
  y[0] = 0;
  for (int i = 1; i <= len; i++) {
    if (s[i - 1] == 'U') {
      x[i] = x[i - 1];
      y[i] = y[i - 1] + 1;
    }
    if (s[i - 1] == 'D') {
      x[i] = x[i - 1];
      y[i] = y[i - 1] - 1;
    }
    if (s[i - 1] == 'L') {
      x[i] = x[i - 1] - 1;
      y[i] = y[i - 1];
    }
    if (s[i - 1] == 'R') {
      x[i] = x[i - 1] + 1;
      y[i] = y[i - 1];
    }
  }
  cout << check() << endl;
}
