#include <bits/stdc++.h>
using namespace std;
int toi(string a) {
  int ans;
  sscanf(a.c_str(), "%d", &ans);
  return ans;
}
string tos(int a) {
  ostringstream st;
  st << a;
  string ans = st.str();
  return ans;
}
int dx[] = {0, 0, -1, 1};
int dy[] = {-1, 1, 0, 0};
int main() {
  int a, b;
  cin >> a >> b;
  string s;
  cin >> s;
  int n = s.size(), x = 0, y = 0;
  int cont, posx[105], posy[105];
  for (int i = (0); i < (n); i++) {
    if (s[i] == 'D') cont = 0;
    if (s[i] == 'U') cont = 1;
    if (s[i] == 'L') cont = 2;
    if (s[i] == 'R') cont = 3;
    x = x + dx[cont];
    y = y + dy[cont];
    posx[i] = x;
    posy[i] = y;
  }
  posx[n] = posy[n] = 0;
  n++;
  bool ok = 0;
  for (int i = (0); i < (n); i++) {
    int k1 = -1, k2 = -1;
    bool uno = 0, dos = 0;
    if (x == 0) {
      if (posx[i] == a) uno = 1;
    } else {
      if ((a - posx[i]) % x == 0) uno = 1, k1 = (a - posx[i]) / x;
    }
    if (y == 0) {
      if (posy[i] == b) dos = 1;
    } else {
      if ((b - posy[i]) % y == 0) dos = 1, k2 = (b - posy[i]) / y;
    }
    if (uno && dos)
      if ((k1 == -1 && k2 >= 0) || (k2 == -1 && k1 >= 0) ||
          (k1 == k2 && k1 >= 0) || (x == 0 && y == 0 && k1 == k2))
        ok = 1;
  }
  puts(ok ? "Yes" : "No");
  return 0;
}
