#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long x, y;
  cin >> x >> y;
  if (x == 0 and y == 0) {
    cout << "Yes"
         << "\n";
    exit(0);
  }
  string s;
  cin >> s;
  int n = s.size();
  vector<pair<long long, long long>> delta(n);
  long long posX = 0, posY = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'U')
      posY += 1;
    else if (s[i] == 'D')
      posY -= 1;
    else if (s[i] == 'R')
      posX += 1;
    else
      posX -= 1;
    delta[i] = {posX, posY};
  }
  bool done = false;
  for (int i = 0; i < n; i++) {
    long long xx = x - delta[i].first, yy = y - delta[i].second;
    if ((posX == 0 and xx != 0) or (posX != 0 and xx / posX < 0)) continue;
    if ((posY == 0 and yy != 0) or (posY != 0 and yy / posY < 0)) continue;
    if ((posX == 0 or xx % posX == 0) and (posY == 0 or yy % posY == 0) and
        (posX == 0 or posY == 0 or xx / posX == yy / posY)) {
      done = true;
      break;
    }
  }
  if (done)
    cout << "Yes"
         << "\n";
  else
    cout << "No"
         << "\n";
  return 0;
}
