#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a, b;
  string s;
  cin >> a >> b >> s;
  int dix = 1, diy = 1;
  if (a < 0) dix = -1, a = -a;
  if (b < 0) diy = -1, b = -b;
  map<char, int> dx, dy;
  dx['U'] = 0;
  dx['D'] = 0;
  dx['L'] = -1;
  dx['R'] = 1;
  dy['U'] = 1;
  dy['D'] = -1;
  dy['L'] = 0;
  dy['R'] = 0;
  long long mx = 0, my = 0;
  for (int i = 0; i < (int)(s.size()); i++) {
    mx += dix * dx[s[i]];
    my += diy * dy[s[i]];
  }
  bool ok = false;
  long long x = 0, y = 0;
  for (int _ = 0; _ < (int)(1000); _++) {
    if (x < a - 200) {
      if (mx <= 0) break;
      long long t = (a - 200 - x) / mx;
      x += t * mx;
      y += t * my;
    }
    if (y < b - 200) {
      if (my <= 0) break;
      long long t = (b - 200 - y) / my;
      x += t * mx;
      y += t * my;
    }
    if (x == a && y == b) ok = true;
    for (int i = 0; i < (int)(s.size()); i++) {
      x += dix * dx[s[i]];
      y += diy * dy[s[i]];
      if (x == a && y == b) ok = true;
    }
  }
  puts(ok ? "Yes" : "No");
  return 0;
}
