#include <bits/stdc++.h>
using namespace std;
int dx[110];
int dy[110];
int main() {
  int a, b;
  string s;
  cin >> a >> b >> s;
  for (int i = 1; i <= s.size(); i++) {
    if (s[i - 1] == 'L') {
      dx[i] = dx[i - 1] - 1;
      dy[i] = dy[i - 1];
    } else if (s[i - 1] == 'R') {
      dx[i] = dx[i - 1] + 1;
      dy[i] = dy[i - 1];
    } else if (s[i - 1] == 'U') {
      dx[i] = dx[i - 1];
      dy[i] = dy[i - 1] + 1;
    } else {
      dx[i] = dx[i - 1];
      dy[i] = dy[i - 1] - 1;
    }
  }
  int adx = dx[s.size()];
  int ady = dy[s.size()];
  for (int i = 0; i < s.size(); i++) {
    int cdx = a - dx[i];
    int cdy = b - dy[i];
    if ((!adx && cdx == 0 || adx && cdx % adx == 0) &&
        (!ady && cdy == 0 || ady && cdy % ady == 0)) {
      if (adx && ady) {
        if (cdx / adx == cdy / ady && (cdx / adx) >= 0) {
          cout << "Yes";
          return 0;
        }
      } else if (ady) {
        if (cdy / ady >= 0) {
          cout << "Yes";
          return 0;
        }
      } else if (adx) {
        if (cdx / adx >= 0) {
          cout << "Yes";
          return 0;
        }
      } else {
        cout << "Yes";
        return 0;
      }
    }
  }
  cout << "No";
  return 0;
}
