#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  if (a == 0 && b == 0) {
    cout << "Yes" << endl;
    return 0;
  }
  string s;
  cin >> s;
  int cx = 0, cy = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'U') ++cy;
    if (s[i] == 'D') --cy;
    if (s[i] == 'L') --cx;
    if (s[i] == 'R') ++cx;
  }
  int dx = cx;
  int dy = cy;
  cx = cy = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'U') ++cy;
    if (s[i] == 'D') --cy;
    if (s[i] == 'L') --cx;
    if (s[i] == 'R') ++cx;
    bool ok1 = false;
    if (dx == 0) {
      if (cx == a) ok1 = true;
    } else {
      if ((a - cx) % dx == 0 && (a - cx) / dx >= 0) ok1 = true;
    }
    bool ok2 = false;
    if (dy == 0) {
      if (cy == b) ok2 = true;
    } else {
      if ((b - cy) % dy == 0 && (b - cy) / dy >= 0) ok2 = true;
    }
    if (dx != 0 && dy != 0) {
      if ((a - cx) / dx != (b - cy) / dy) ok1 = ok2 = false;
    }
    if (ok1 && ok2) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
  return 0;
}
