#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  cin >> a >> b;
  int s = (abs(a) + abs(b));
  if (s == 0) {
    cout << "Yes" << endl;
    return 0;
  }
  string str;
  cin >> str;
  int x = 0, y = 0;
  for (int i = 0; i < str.size(); i++) {
    if (str[i] == 'U') y++;
    if (str[i] == 'D') y--;
    if (str[i] == 'R') x++;
    if (str[i] == 'L') x--;
  }
  int t = abs(x) + abs(y);
  int v;
  if (t == 0) {
    v = t;
  } else {
    v = s / t;
  }
  v = max(v - 110, 0);
  x *= v;
  y *= v;
  for (int j = 0; j < 10100100; j++) {
    int i = j % str.size();
    if (x == a && y == b) {
      cout << "Yes" << endl;
      return 0;
    }
    if (str[i] == 'U') y++;
    if (str[i] == 'D') y--;
    if (str[i] == 'R') x++;
    if (str[i] == 'L') x--;
  }
  cout << "No" << endl;
}
