#include <bits/stdc++.h>
using namespace std;
const int INFint = 1147483547;
const long long INF = 9223372036854775807ll;
const long long MOD = 1000000007ll;
const long double EPS = 1e-13;
int main() {
  ios_base::sync_with_stdio(0);
  int a, b;
  cin >> a >> b;
  string s;
  cin >> s;
  vector<pair<int, int> > mv(s.size() + 1);
  int dx = 0, dy = 0;
  for (int i = 0; i < s.size(); i++) {
    if (dx == a && dy == b) {
      cout << "Yes";
      return 0;
    }
    if (s[i] == 'U') dy++;
    if (s[i] == 'D') dy--;
    if (s[i] == 'L') dx--;
    if (s[i] == 'R') dx++;
    mv[i].first = dx, mv[i].second = dy;
  }
  if (dx == a && dy == b) {
    cout << "Yes";
    return 0;
  }
  if (dx == 0 && dy == 0) {
    cout << "No";
    return 0;
  }
  int curx = 0, cury = 0;
  if (0) cerr << dx << ' ' << dy << endl;
  for (int i = 0; i < s.size(); i++) {
    int mvx = a - mv[i].first;
    int mvy = b - mv[i].second;
    if (0) cerr << mvx << ' ' << mvy << endl;
    int k = 1;
    if (dx != 0) {
      k = mvx / dx;
    }
    if (dy != 0) {
      k = mvy / dy;
    }
    if (k > -1 && dx * k == mvx && dy * k == mvy) {
      cout << "Yes";
      return 0;
    }
  }
  cout << "No";
  return 0;
}
