#include <bits/stdc++.h>
using namespace std;
double PI = 3.141592653589;
long long int n, t = 1, tmp, n1;
long long int ex, ey;
string s;
pair<long long int, long long int> r1[(long long int)1000002];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  cin >> ex >> ey;
  cin >> s;
  n1 = (long long int)s.length();
  s += s;
  n = (long long int)s.length();
  r1[0] = make_pair(0, 0);
  for (long long int i = 0; i < n - 1; i++) {
    r1[i + 1].first = r1[i].first;
    r1[i + 1].second = r1[i].second;
    if (s[i] == 'U') {
      r1[i + 1].second++;
    } else if (s[i] == 'D')
      r1[i + 1].second--;
    else if (s[i] == 'L')
      r1[i + 1].first--;
    else
      r1[i + 1].first++;
  }
  bool f = 0;
  for (long long int i = 0; i < n1; i++) {
    long long int dx1 = (r1[i + n1].first - r1[i].first),
                  dy1 = (r1[i + n1].second - r1[i].second);
    long long int dx2 = (ex - r1[i].first), dy2 = (ey - r1[i].second);
    if (ex == r1[i].first && ey == r1[i].second) {
      f = 1;
      break;
    }
    if ((dy1 == 0 || dy2 == 0) && (dy1 != dy2)) continue;
    if ((dx1 == 0 || dx2 == 0) && (dx1 != dx2)) continue;
    if (dy1 && (dy1 / abs(dy1)) != (dy2 / abs(dy2))) continue;
    if (dx1 && (dx1 / abs(dx1)) != (dx2 / abs(dx2))) continue;
    long long int nsx = 0, nsy = 0;
    if (dx1 && dx2 % dx1)
      continue;
    else if (dx1)
      nsx = dx2 / dx1;
    if (dy1 && dy2 % dy1)
      continue;
    else if (dy1)
      nsy = dy2 / dy1;
    if (dx2 && dy2) {
      if (nsx == nsy) {
        f = 1;
        break;
      } else
        continue;
    }
    f = 1;
    break;
  }
  if (f)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
