#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int a, b;
  cin >> a >> b >> s;
  int x = 0;
  int y = 0;
  vector<pair<int, int> > v;
  for (int i = 0; i < s.length(); ++i) {
    v.push_back(make_pair(x, y));
    if (s[i] == 'D')
      --y;
    else if (s[i] == 'U')
      ++y;
    else if (s[i] == 'R')
      ++x;
    else
      --x;
  }
  for (int i = 0; i < v.size(); ++i) {
    if ((x == 0 && a != v[i].first) || (y == 0 && b != v[i].second)) continue;
    if (((a == v[i].first && x == 0) ||
         ((a - v[i].first) % x == 0) && ((a - v[i].first) / x >= 0)) &&
        ((b == v[i].second && y == 0) ||
         ((b - v[i].second) % y == 0) && ((b - v[i].second) / y >= 0))) {
      if (x != 0 && y != 0 && ((a - v[i].first) / x != (b - v[i].second) / y))
        continue;
      return cout << "Yes", 0;
    }
  }
  cout << "No";
  return 0;
}
