#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  string s;
  cin >> s;
  int n = s.length();
  int x[n + 1], y[n + 1];
  x[0] = 0, y[0] = 0;
  bool t = false;
  for (int i = 1; i <= s.length(); i++) {
    x[i] = x[i - 1];
    y[i] = y[i - 1];
    if (a == x[i] && b == y[i]) {
      cout << "Yes" << endl;
      t = true;
      break;
    }
    if (s[i - 1] == 'R') x[i] = x[i] + 1;
    if (s[i - 1] == 'L') x[i] = x[i] - 1;
    if (s[i - 1] == 'U') y[i] = y[i] + 1;
    if (s[i - 1] == 'D') y[i] = y[i] - 1;
  }
  int X = x[n], Y = y[n];
  for (int i = 0; i < s.length() && !t; i++) {
    int k;
    if (X == 0) {
      if (x[i] == a) {
        if (Y == 0) {
          if (y[i] == b) {
            cout << "Yes" << endl;
            t = true;
            break;
          }
        } else {
          if (((b - y[i]) % Y) == 0 && ((b - y[i]) / Y) > 0) {
            cout << "Yes" << endl;
            t = true;
            break;
          }
        }
      }
    } else {
      if ((a - x[i]) % X == 0) {
        int k = (a - x[i]) / X;
        if ((k * Y + y[i]) == b && k > 0) {
          cout << "Yes" << endl;
          t = true;
          break;
        }
      }
    }
  }
  if (!t) cout << "No" << endl;
  return 0;
}
