#include <bits/stdc++.h>
using namespace std;
const long long N = 1e2 + 1;
long long prx[N], pry[N];
long long vx, vy;
long long dig(long long x) {
  if (x == 0) return 0;
  return x / abs(x);
}
signed main() {
  long long x, y;
  cin >> x >> y;
  if (x == 0 && y == 0) return cout << "Yes", 0;
  string s;
  cin >> s;
  long long pp = 0;
  for (auto it : s) {
    if (it == 'U')
      vy++;
    else if (it == 'D')
      vy--;
    else if (it == 'R')
      vx++;
    else if (it == 'L')
      vx--;
    prx[pp] = vx;
    pry[pp] = vy;
    pp++;
  }
  for (long long i = 0; i < s.size(); i++) {
    long long xx = x - prx[i];
    long long yy = y - pry[i];
    long long k = 0;
    if (xx == 0 && yy == 0) return cout << "Yes", 0;
    if (dig(xx) != dig(vx) || dig(yy) != dig(vy)) continue;
    if (vx != 0) {
      k = xx / vx;
    }
    if (vy != 0) {
      k = yy / vy;
    }
    if (k * vx == xx && k * vy == yy) return cout << "Yes", 0;
  }
  cout << "No";
}
