#include <bits/stdc++.h>
using namespace std;
template <class A, class B>
A cvt(B x) {
  stringstream s;
  s << x;
  A r;
  s >> r;
  return r;
}
typedef vector<int> VI;
typedef vector<pair<int, int> > VII;
typedef vector<string> VS;
long long a, b, ox, oy, val;
;
string s;
bool fin(long long x, long long y) {
  if (x == a && y == b) {
    return true;
  }
  for (int i = (int)0; i < (int)s.size(); ++i) {
    if (s[i] == 'U')
      y++;
    else if (s[i] == 'D')
      y--;
    else if (s[i] == 'L')
      x--;
    else if (s[i] == 'R')
      x++;
    if (x == a && y == b) {
      return true;
      ;
    }
  }
  return false;
}
int main() {
  cin >> a >> b >> s;
  ox = oy = 0L;
  if (a == 0 && b == 0) {
    cout << "Yes\n";
    return 0;
  }
  for (int i = (int)0; i < (int)s.size(); ++i) {
    if (s[i] == 'U')
      oy++;
    else if (s[i] == 'D')
      oy--;
    else if (s[i] == 'L')
      ox--;
    else if (s[i] == 'R')
      ox++;
    if (ox == a && oy == b) {
      cout << "Yes\n";
      return 0;
    }
  }
  val = 0;
  if (ox != 0) val = max(a / ox, val);
  if (oy != 0) val = max(b / oy, val);
  for (long long i = max(val - 101, (long long)0); i < (val + 102); i++) {
    if (fin(ox * i, oy * i)) {
      cout << "Yes\n";
      return 0;
    }
  }
  cout << "No\n";
  return 0;
}
