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