#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  long long X, Y, x, y;
  cin >> X >> Y;
  x = 0, y = 0;
  string str;
  cin >> str;
  if (X == 0 && Y == 0) {
    cout << "Yes\n";
    return 0;
  }
  vector<pair<int, int> > vec;
  for (int i = 0; i < str.length(); i++) {
    if (str[i] == 'R')
      x++;
    else if (str[i] == 'L')
      x--;
    else if (str[i] == 'U')
      y++;
    else if (str[i] == 'D')
      y--;
    vec.push_back(make_pair(x, y));
  }
  for (int i = 0; i < vec.size(); i++) {
    long long K = 1;
    long long diffX = X - vec[i].first, diffY = Y - vec[i].second;
    if (x != 0)
      K = diffX / x;
    else if (y != 0)
      K = diffY / y;
    if (K >= 0 && K * x == diffX && K * y == diffY) {
      cout << "Yes\n";
      return 0;
    }
  }
  cout << "No\n";
  return 0;
}
