#include <bits/stdc++.h>
using namespace std;
string s;
long long int l, a, b;
map<int, pair<int, int> > mp;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> a >> b;
  cin >> s;
  l = s.length();
  long long int x = 0, y = 0;
  mp[l] = make_pair(0, 0);
  for (int i = 0; i < l; i++) {
    if (x == a && y == b) {
      cout << "Yes"
           << "\n";
      return 0;
    }
    if (s[i] == 'L') x--;
    if (s[i] == 'U') y++;
    if (s[i] == 'R') x++;
    if (s[i] == 'D') y--;
    mp[i] = make_pair(x, y);
  }
  long long int k1 = 0, k2 = 0;
  for (long long int i = 0; i <= l; i++) {
    if (x != 0) k1 = (a - mp[i].first) / x;
    if (y != 0) k2 = (b - mp[i].second) / y;
    if (k1 >= 0 && k2 >= 0 && (k1 * x + mp[i].first == a) &&
        (k2 * y + mp[i].second == b)) {
      if ((x * y != 0 && k1 == k2) || (x == 0) || y == 0) {
        cout << "Yes"
             << "\n";
        return 0;
      }
    }
  }
  cout << "No"
       << "\n";
  return 0;
}
