#include <bits/stdc++.h>
using namespace std;
const int N = 110;
long long a, b;
int n;
char s[N];
int x[N], y[N];
int main() {
  cin >> a >> b;
  cin >> s + 1;
  n = strlen(s + 1);
  bool flag = 0;
  for (int i = 1; i <= n; ++i) {
    if (s[i] == 'R') {
      x[i] = x[i - 1] + 1;
      y[i] = y[i - 1];
    }
    if (s[i] == 'L') {
      x[i] = x[i - 1] - 1;
      y[i] = y[i - 1];
    }
    if (s[i] == 'U') {
      x[i] = x[i - 1];
      y[i] = y[i - 1] + 1;
    }
    if (s[i] == 'D') {
      x[i] = x[i - 1];
      y[i] = y[i - 1] - 1;
    }
    if (x[i] == a && y[i] == b) flag = 1;
  }
  if (flag == 1) {
    cout << "Yes" << endl;
    return 0;
  }
  for (int i = 0; i <= n; ++i) {
    int t1 = a - x[i], t2 = b - y[i];
    if (t1 != 0 && x[n] == 0) continue;
    if (t2 != 0 && y[n] == 0) continue;
    if (x[n] == 0 || y[n] == 0) {
      bool flag1 = 0, flag2 = 0;
      if (x[n] == 0) flag1 = 1;
      if (y[n] == 0) flag2 = 1;
      if (flag1 && !flag2) {
        if (t2 % y[n] == 0 && t2 / y[n] >= 0) {
          cout << "Yes" << endl;
          return 0;
        } else
          continue;
      }
      if (!flag1 && flag2) {
        if (t1 % x[n] == 0 && t1 / x[n] >= 0) {
          cout << "Yes" << endl;
          return 0;
        } else
          continue;
      }
      if (!x[i] && !y[i]) {
        cout << "Yes" << endl;
        return 0;
      } else
        continue;
    }
    if (t1 % x[n] || t2 % y[n]) continue;
    t1 /= x[n], t2 /= y[n];
    if (t1 < 0 || t2 < 0 || t1 != t2) continue;
    cout << "Yes" << endl;
    return 0;
  }
  cout << "No" << endl;
  return 0;
}
