#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x, y, cx[120], cy[120], n, i, l = 0;
  string s;
  cin >> x >> y;
  getline(cin, s);
  getline(cin, s);
  n = s.size();
  cx[0] = cy[0] = 0;
  if (x == 0 && y == 0) l = 1;
  for (i = 0; i < n; i++) {
    cx[i + 1] = cx[i];
    cy[i + 1] = cy[i];
    if (s[i] == 'R') cx[i + 1]++;
    if (s[i] == 'U') cy[i + 1]++;
    if (s[i] == 'D') cy[i + 1]--;
    if (s[i] == 'L') cx[i + 1]--;
    if (x == cx[i] && cy[i] == y) l = 1;
  }
  for (i = 0; i <= n; i++) {
    if (cx[n] == 0 && cy[n] == 0) break;
    if (cx[n] == 0 && (y - cy[i]) % cy[n] == 0 && (y - cy[i]) / cy[n] > 0 &&
        cx[i] == x)
      l = 1;
    if (cx[n] != 0)
      if ((x - cx[i]) % cx[n] == 0 &&
          cy[n] * ((x - cx[i]) / cx[n]) + cy[i] == y &&
          ((x - cx[i]) / cx[n]) > 0)
        l = 1;
  }
  if (l == 1)
    cout << "Yes\n";
  else
    cout << "No\n";
}
