#include <bits/stdc++.h>
using namespace std;
bool does[205][205];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  string s;
  int a, b;
  cin >> a >> b >> s;
  int x = 0;
  int y = 0;
  does[100][100] = true;
  for (int i = 0; i < s.length(); i++) {
    if (s.at(i) == 'L') {
      x--;
    }
    if (s.at(i) == 'R') {
      x++;
    }
    if (s.at(i) == 'D') {
      y--;
    }
    if (s.at(i) == 'U') {
      y++;
    }
    does[x + 100][y + 100] = true;
  }
  int movecnt;
  if (x == 0 && y == 0) {
    if (does[a + 100][b + 100]) {
      cout << "Yes";
    } else {
      cout << "No";
    }
    return 0;
  } else if (x == 0) {
    movecnt = b / y;
  } else {
    movecnt = a / x;
  }
  for (int i = max(0, movecnt - 105); i <= movecnt + 105; i++) {
    int needx = a - x * i;
    int needy = b - y * i;
    if (abs(needx) <= 100 && abs(needy) <= 100) {
      if (does[needx + 100][needy + 100]) {
        cout << "Yes";
        return 0;
      }
    }
  }
  cout << "No";
  return 0;
}
