#include <bits/stdc++.h>
using namespace std;
struct __TS {
  ~__TS() {
    cerr << "Time elapsed: " << clock() * 1.0 / CLOCKS_PER_SEC << endl;
  }
} __ts;
bool solve(int a, int b, string s) {
  int dx = 0, dy = 0;
  for (char c : s) {
    if (c == 'U') {
      dy++;
    }
    if (c == 'D') {
      dy--;
    }
    if (c == 'L') {
      dx--;
    }
    if (c == 'R') {
      dx++;
    }
  }
  for (int x = a - 100; x <= a + 100; x++) {
    for (int y = b - 100; y <= b + 100; y++) {
      if (dx == 0 && x != 0) continue;
      if (dx != 0 && x % dx != 0) continue;
      if (dy == 0 && y != 0) continue;
      if (dy != 0 && y % dy != 0) continue;
      if (dx != 0 && dy != 0 && x / dx != y / dy) continue;
      if (dx != 0 && x / dx < 0) continue;
      if (dy != 0 && y / dy < 0) continue;
      if (x == a && y == b) {
        return true;
      }
      int cx = x, cy = y;
      for (char c : s) {
        if (c == 'U')
          cy++;
        else if (c == 'D')
          cy--;
        else if (c == 'L')
          cx--;
        else
          cx++;
        if (cx == a && cy == b) {
          return true;
        }
      }
    }
  }
  return false;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int a, b;
  cin >> a >> b;
  string s;
  cin >> s;
  if (solve(a, b, s))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
