#include <bits/stdc++.h>
using namespace std;
int abs(int x) {
  if (x >= 0) return x;
  return -1 * x;
}
bool ofSameSign(int a, int b) {
  return (a >= 0 && b >= 0) || (a <= 0 && b <= 0);
}
int main() {
  int a, b, x[256] = {0}, y[256] = {0}, incX = 0, incY = 0, X, Y;
  string s;
  cin >> a >> b >> s;
  if (a == 0 && b == 0) {
    cout << "Yes";
    return 0;
  }
  for (int i = 0; i < s.size(); ++i)
    if (s[i] == 'U') {
      y[i + 1] = y[i] + 1;
      x[i + 1] = x[i];
    } else if (s[i] == 'D') {
      y[i + 1] = y[i] - 1;
      x[i + 1] = x[i];
    } else if (s[i] == 'R') {
      x[i + 1] = x[i] + 1;
      y[i + 1] = y[i];
    } else if (s[i] == 'L') {
      x[i + 1] = x[i] - 1;
      y[i + 1] = y[i];
    }
  bool res = 0;
  for (int i = 1; i <= s.size() && !res; ++i) {
    if (x[i] == a && y[i] == b) res = 1;
  }
  X = x[s.size()];
  Y = y[s.size()];
  s = "A" + s;
  int mo3amelX, mo3amelY;
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == 'U')
      ++incY;
    else if (s[i] == 'D')
      --incY;
    else if (s[i] == 'R')
      ++incX;
    else if (s[i] == 'L')
      --incX;
    mo3amelX = 1;
    mo3amelY = 1;
    if (X != 0) mo3amelX = abs((a - incX) / X);
    if (Y != 0) mo3amelY = abs((b - incY) / Y);
    if ((X * mo3amelX + incX == a && Y * mo3amelX + incY == b) ||
        (X * mo3amelY + incX == a && Y * mo3amelY + incY == b))
      res = 1;
  }
  if (res)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
