#include <bits/stdc++.h>
using namespace std;
long long int a, b;
long long int x[105], y[105];
string s;
int main() {
  cin >> a >> b;
  cin >> s;
  x[0] = y[0] = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'L') {
      x[i + 1] = x[i] - 1;
      y[i + 1] = y[i];
    } else if (s[i] == 'U') {
      x[i + 1] = x[i];
      y[i + 1] = y[i] + 1;
    } else if (s[i] == 'R') {
      x[i + 1] = x[i] + 1;
      y[i + 1] = y[i];
    } else if (s[i] == 'D') {
      x[i + 1] = x[i];
      y[i + 1] = y[i] - 1;
    }
  }
  long long int ox = x[s.size()], oy = y[s.size()];
  for (int i = 0; i <= s.size(); i++) {
    if (ox != 0 and oy != 0) {
      if ((((a - x[i]) % ox) == 0) and (((b - y[i]) % oy) == 0))
        if ((((a - x[i]) / ox) >= 0) and
            (((a - x[i]) / ox) == ((b - y[i]) / oy))) {
          cout << "Yes" << endl;
          return 0;
        }
    } else if (ox == 0 and oy == 0) {
      if ((x[i] == a) and (y[i] == b)) {
        cout << "Yes" << endl;
        return 0;
      }
    } else if (ox == 0) {
      if (x[i] == a and (((b - y[i]) % oy) == 0) and (((b - y[i]) / oy) >= 0)) {
        cout << "Yes" << endl;
        return 0;
      }
    } else if (oy == 0) {
      if (y[i] == b and (((a - x[i]) % ox) == 0) and (((a - x[i]) / ox) >= 0)) {
        cout << "Yes" << endl;
        return 0;
      }
    }
  }
  cout << "No" << endl;
  return 0;
}
