#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b;
  string s;
  cin >> a >> b;
  cin >> s;
  long long dx = 0, dy = 0;
  for (int i = 0; i < (int)s.size(); i++) {
    if (s[i] == 'D') {
      dy--;
    }
    if (s[i] == 'U') {
      dy++;
    }
    if (s[i] == 'R') {
      dx++;
    }
    if (s[i] == 'L') {
      dx--;
    }
  }
  int imp = -1;
  long long x = 0, y = 0;
  if (a == x && b == y) {
    imp = 0;
  }
  long long disx, disy;
  if (dx == 0 || a * dx < 0) {
    disx = 1e15;
  } else {
    disx = a / dx;
  }
  if (dy == 0 || b * dy < 0) {
    disy = 1e15;
  } else {
    disy = b / dy;
  }
  long long k = min(disx, disy);
  x = k * dx, y = k * dy;
  x -= 500 * dx, y -= 500 * dy;
  if (disx == 1e15 && disy == 1e15) {
    x = 0, y = 0;
  }
  if (a == x && b == y) {
    imp = 0;
  }
  if (a == x && b == y) {
    imp = 0;
  }
  int time = 1000;
  while (time--) {
    for (int i = 0; i < (int)s.size(); i++) {
      if (s[i] == 'D') {
        y--;
      }
      if (s[i] == 'U') {
        y++;
      }
      if (s[i] == 'R') {
        x++;
      }
      if (s[i] == 'L') {
        x--;
      }
      if (a == x && b == y) {
        imp = 0;
      }
    }
  }
  if (imp == 0) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  return 0;
}
