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