#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
const long long inf = 1000000000000;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long x, y;
  cin >> x >> y;
  string s;
  cin >> s;
  int r = 0;
  int u = 0;
  vector<pair<int, int> > vp;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'R') {
      r++;
    } else if (s[i] == 'L') {
      r--;
    }
    if (s[i] == 'U') {
      u++;
    } else if (s[i] == 'D') {
      u--;
    }
    vp.push_back(make_pair(r, u));
  }
  if (x == 0 && y == 0) {
    cout << "Yes" << '\n';
    return 0;
  }
  for (int i = 0; i < vp.size(); i++) {
    int tx = x;
    int ty = y;
    tx -= vp[i].first;
    ty -= vp[i].second;
    int k1;
    int k2;
    if (r == 0)
      k1 = mod;
    else
      k1 = tx / r;
    if (u == 0)
      k2 = mod;
    else
      k2 = ty / u;
    if (k1 * r == tx && k2 * u == ty && k1 == k2 && k1 >= 0 && k2 >= 0) {
      cout << "Yes" << '\n';
      return 0;
    }
    if ((r == 0 && tx == 0 && k2 * u == ty && k2 >= 0) ||
        (u == 0 && ty == 0 && k1 * r == tx && k1 >= 0)) {
      cout << "Yes" << '\n';
      return 0;
    }
  }
  cout << "No" << '\n';
  return 0;
}
