#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int x, y, p;
  cin >> x >> y;
  string s;
  cin >> s;
  long long int n = s.length();
  vector<pair<long long, long long> > v;
  long long int r, c;
  r = c = 0;
  for (auto x : s) {
    v.push_back({r, c});
    if (x == 'U')
      c++;
    else if (x == 'R')
      r++;
    else if (x == 'L')
      r--;
    else
      c--;
  }
  if (r == x && c == y) {
    cout << "Yes\n";
    return;
  }
  for (long long int i = 0; i < n; i++) {
    if (r != 0)
      p = (x - v[i].first) / r;
    else if (c != 0)
      p = (y - v[i].second) / c;
    p = max(p, 0LL);
    if (x == p * r + v[i].first && y == v[i].second + p * c) {
      cout << "Yes\n";
      return;
    }
  }
  cout << "No\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  solve();
  return 0;
}
