#include <bits/stdc++.h>
using namespace std;
int a, b, ry, rx, kx, ky;
string s;
vector<int> dx, dy;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  cin >> a >> b;
  cin >> s;
  bool f = false;
  int x = 0, y = 0;
  dx.push_back(0);
  dy.push_back(0);
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'R') x++;
    if (s[i] == 'L') x--;
    if (s[i] == 'U') y++;
    if (s[i] == 'D') y--;
    dx.push_back(x);
    dy.push_back(y);
  }
  rx = x, ry = y;
  for (int i = 0; i < dx.size(); i++) {
    if (rx != 0 && ry != 0 && (a - dx[i]) % rx == 0 && (b - dy[i]) % ry == 0 &&
        ((a - dx[i]) / rx) == (b - dy[i]) / ry && (b - dy[i]) / ry >= 0)
      f = true;
    if (rx == 0 && ry != 0 && (dx[i] == a) && (b - dy[i]) % ry == 0 &&
        (b - dy[i]) / ry >= 0)
      f = true;
    if (ry == 0 && rx != 0 && (dy[i] == b) && (a - dx[i]) % rx == 0 &&
        (a - dx[i]) / rx >= 0)
      f = true;
    if (ry == 0 && rx == 0 && (dy[i] == b) && (dx[i] == a)) f = true;
  }
  if (f)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
