#include <bits/stdc++.h>
using namespace std;
void update(long long &x, long long &y, char c) {
  if (c == 'U')
    y++;
  else if (c == 'D')
    y--;
  else if (c == 'L')
    x--;
  else
    x++;
}
int main() {
  long long a, b;
  cin >> a >> b;
  string s;
  cin >> s;
  if (a == 0 && b == 0) {
    cout << "Yes" << endl;
    return 0;
  }
  long long destx = 0, desty = 0;
  for (int i = 0; i < s.length(); i++) update(destx, desty, s[i]);
  long long x = 0, y = 0;
  for (int i = 0; i < s.length(); i++) {
    update(x, y, s[i]);
    long long srcx = a - x;
    long long srcy = b - y;
    bool bx = false, by = false;
    if (destx == 0) {
      if (srcx != 0) continue;
      bx = true;
    }
    if (desty == 0) {
      if (srcy != 0) continue;
      by = true;
    }
    if (bx && by) {
      cout << "Yes" << endl;
      return 0;
    }
    if (bx || by) {
      if (bx)
        if (0 <= srcy / desty && srcy % desty == 0) {
          cout << "Yes" << endl;
          return 0;
        }
      if (by)
        if (0 <= srcx / destx && srcx % destx == 0) {
          cout << "Yes" << endl;
          return 0;
        }
      continue;
    }
    if (0 <= srcx / destx && srcx / destx == srcy / desty &&
        srcx % destx == 0 && srcy % desty == 0) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
}
