#include <bits/stdc++.h>
using namespace std;
bool checkAns(long long x1, long long y1, long long new_x, long long new_y) {
  long long res = 0;
  if (x1 != 0) {
    res = new_x / x1;
  }
  if (y1 != 0) {
    res = new_y / y1;
  }
  if (res < 0) {
    return false;
  }
  return (res * x1 == new_x && res * y1 == new_y);
}
int main() {
  long long x, y, new_x, new_y;
  string s;
  cin >> x >> y >> s;
  int length = s.length();
  int xi[101] = {0}, yi[101] = {0};
  int check = 0;
  for (int i = 0; i < s.length(); i++) {
    if (s[i] == 'R') {
      xi[i + 1] += xi[i] + 1;
      yi[i + 1] += yi[i];
    } else if (s[i] == 'L') {
      xi[i + 1] += xi[i] - 1;
      yi[i + 1] += yi[i];
    } else if (s[i] == 'U') {
      yi[i + 1] += yi[i] + 1;
      xi[i + 1] += xi[i];
    } else if (s[i] == 'D') {
      yi[i + 1] += yi[i] - 1;
      xi[i + 1] += xi[i];
    }
  }
  for (int i = 0; i <= s.length(); i++) {
    if (checkAns(xi[s.length()], yi[s.length()], x - xi[i], y - yi[i])) {
      check = 1;
    }
  }
  if (check == 1)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
