#include <bits/stdc++.h>
using namespace std;
long long a, b, x, y, X, Y;
int dx[4] = {0, 1, 0, -1};
int dy[4] = {1, 0, -1, 0};
string s;
int main() {
  int flg = 0;
  cin >> a >> b;
  cin >> s;
  for (int i = 0; i < (int)s.length(); i++) {
    if (s[i] == 'U') {
      Y++;
    } else if (s[i] == 'R') {
      X++;
    } else if (s[i] == 'D') {
      Y--;
    } else {
      X--;
    }
  }
  if (a == x && b == y) {
    flg = 1;
    goto END;
  }
  for (int i = 0; i < (int)s.size(); i++) {
    int p = 0;
    if (s[i] == 'U') {
      p = 0;
    } else if (s[i] == 'R') {
      p = 1;
    } else if (s[i] == 'D') {
      p = 2;
    } else {
      p = 3;
    }
    x += dx[p];
    y += dy[p];
    if (X * Y != 0 && (a - x) % X == 0 && (b - y) % Y == 0 &&
        (a - x) * Y == (b - y) * X && (a - x) * X >= 0 && (b - y) * Y >= 0) {
      flg = 1;
      break;
    } else if (X * Y == 0) {
      if (X == 0 && Y == 0) {
        if (a == x && y == b) {
          flg = 1;
          break;
        }
      } else if (X == 0) {
        if (a == x && (b - y) % Y == 0 && (b - y) * Y >= 0) {
          flg = 1;
          break;
        }
      } else {
        if (b == y && (a - x) % X == 0 && (a - x) * X >= 0) {
          flg = 1;
          break;
        }
      }
    }
  }
END:
  cout << ((flg == 1) ? "Yes" : "No") << endl;
  return 0;
}
