#include <bits/stdc++.h>
using namespace std;
long long x, y, u = 0, v = 0;
vector<pair<long long, long long> > visited;
void move(char c) {
  if (c == 'U')
    v++;
  else if (c == 'D')
    v--;
  else if (c == 'L')
    u--;
  else
    u++;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> x >> y;
  if (x == 0 && y == 0) {
    cout << "Yes";
    return 0;
  }
  string s;
  cin >> s;
  for (long long i = 0; i < (long long)s.size(); ++i) {
    move(s[i]);
    if (u == x && v == y) {
      cout << "Yes";
      return 0;
    }
    visited.push_back(make_pair(u, v));
  }
  if (u == 0 && v == 0) {
    cout << "No";
    return 0;
  }
  long long h_shift = u, v_shift = v;
  for (long long i = 0; i < (long long)s.size(); ++i) {
    move(s[i]);
    if (u == x && v == y) {
      cout << "Yes";
      return 0;
    }
    long long u_ref = x - visited[i].first;
    long long v_ref = y - visited[i].second;
    long long p = (h_shift ? u_ref % h_shift : u_ref);
    long long q = (v_shift ? v_ref % v_shift : v_ref);
    if (((u_ref < 0 && h_shift > 0) || (u_ref > 0 && h_shift < 0)) ||
        ((v_ref < 0 && v_shift > 0) || (v_ref > 0 && v_shift < 0)))
      continue;
    if (p == 0 && q == 0 && (u_ref * v_shift == v_ref * h_shift)) {
      cout << "Yes";
      return 0;
    }
  }
  cout << "No";
  return 0;
}
