#include <bits/stdc++.h>
using namespace std;
bool f(long long int currx, long long int curry, long long int x,
       long long int y, long long int a, long long int b) {
  long long int k1, k2;
  if (abs(x) > 0)
    k1 = (a - currx) / x;
  else
    k1 = INT_MAX;
  if (abs(y) > 0)
    k2 = (b - curry) / y;
  else
    k2 = INT_MAX;
  long long int k = min(k1, k2);
  if (k < 0) return false;
  a -= (currx + k * x);
  b -= (curry + k * y);
  if (a == 0 and b == 0) return true;
  return false;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int a, b;
  cin >> a >> b;
  string s;
  cin >> s;
  long long int x = 0, y = 0;
  if (a == 0 and b == 0) {
    cout << "Yes";
    return 0;
  }
  bool flag = false;
  for (long long int i = 0; i < s.size(); i++) {
    if (s[i] == 'U')
      y += 1;
    else if (s[i] == 'D')
      y -= 1;
    else if (s[i] == 'L')
      x -= 1;
    else
      x += 1;
    if (a == x and b == y) flag = true;
  }
  if (flag)
    cout << "Yes";
  else {
    long long int currx = 0, curry = 0;
    if (f(currx, curry, x, y, a, b)) flag = true;
    for (long long int i = 0; i < s.size(); i++) {
      if (s[i] == 'U')
        curry += 1;
      else if (s[i] == 'D')
        curry -= 1;
      else if (s[i] == 'L')
        currx -= 1;
      else
        currx += 1;
      if (f(currx, curry, x, y, a, b)) flag = true;
    }
    if (flag)
      cout << "Yes";
    else
      cout << "No";
  }
  return 0;
}
