#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b, n, x, y, i, x1, y1;
  cin >> a >> b;
  string s;
  cin >> s;
  n = s.length();
  x = 0;
  y = 0;
  vector<pair<long long, long long>> v;
  v.push_back({0, 0});
  for (i = 0; i < n; i++) {
    if (s[i] == 'U')
      y++;
    else if (s[i] == 'D')
      y--;
    else if (s[i] == 'R')
      x++;
    else
      x--;
    v.push_back({x, y});
    if (x == a && y == b) {
      cout << "Yes" << endl;
      goto end;
    }
  }
  for (i = 0; i <= n; i++) {
    if (x + v[i].first == a && y + v[i].second == b) {
      cout << "Yes" << endl;
      goto end;
    }
  }
  if (a == 0 && b == 0)
    cout << "Yes" << endl;
  else if (x == a && y == b)
    cout << "Yes" << endl;
  else if (x == 0 && y == 0)
    cout << "No" << endl;
  else if (x == 0 && y * b > 0) {
    for (i = 0; i <= n; i++) {
      x1 = v[i].first;
      y1 = v[i].second;
      if (a == x1 && (b - y1) % y == 0) {
        cout << "Yes" << endl;
        goto st4;
      }
    }
    cout << "No" << endl;
  st4:;
  } else if (y == 0 && x * a > 0) {
    for (i = 0; i <= n; i++) {
      x1 = v[i].first;
      y1 = v[i].second;
      if (b == y1 && (a - x1) % x == 0) {
        cout << "Yes" << endl;
        goto st5;
      }
    }
    cout << "No" << endl;
  st5:;
  } else if (a * x > 0 && b * y > 0) {
    for (i = 0; i <= n; i++) {
      x1 = v[i].first;
      y1 = v[i].second;
      if ((a - x1) % x == 0 && (b - y1) % y == 0 &&
          (a - x1) / x == (b - y1) / y) {
        cout << "Yes" << endl;
        goto st;
      }
    }
    cout << "No" << endl;
  st:;
  } else
    cout << "No" << endl;
end:;
}
