#include <bits/stdc++.h>
using namespace std;
int a, b;
string in;
bool visit(int s, int dr, int dc) {
  int r = b, c = a;
  for (int i = s; i >= 0; i--) {
    if (in[i] == 'L')
      c++;
    else if (in[i] == 'R')
      c--;
    else if (in[i] == 'D')
      r++;
    else if (in[i] == 'U')
      r--;
  }
  if ((c < 0 && dc > 0) || (c > 0 && dc < 0)) return false;
  if ((r < 0 && dr > 0) || (r > 0 && dr < 0)) return false;
  if (dr == 0) {
    if (r == 0 && c % dc == 0) return true;
    return false;
  }
  if (dc == 0) {
    if (c == 0 && r % dr == 0) return true;
    return false;
  }
  if (!(c % dc == 0 && r % dr == 0)) return false;
  if (r / dr == c / dc) return true;
  return false;
}
int main() {
  cin >> a >> b;
  cin >> in;
  int ln = in.length();
  int r = 0, c = 0;
  if (c == a && r == b) {
    cout << "Yes";
    return 0;
  }
  for (int i = 0; i < ln; i++) {
    if (in[i] == 'L')
      c--;
    else if (in[i] == 'R')
      c++;
    else if (in[i] == 'D')
      r--;
    else if (in[i] == 'U')
      r++;
    if (c == a && r == b) {
      cout << "Yes";
      return 0;
    }
  }
  if (c == 0 && r == 0) {
    cout << "No";
    return 0;
  }
  if (c == 0 && r == 0) {
    cout << "No";
    return 0;
  }
  for (int i = ln - 1; i >= 0; i--)
    if (visit(i, r, c)) {
      cout << "Yes\n";
      return 0;
    }
  cout << "No";
  return 0;
}
