#include <bits/stdc++.h>
const int maxn = 102;
int n, i;
long long a, b, u, v, x[maxn], y[maxn];
bool check;
std::string s;
int main() {
  std::cin >> a >> b;
  std::cin.ignore();
  getline(std::cin, s);
  n = s.length();
  for (i = 0; i < n; i++)
    if (s[i] == 'R') {
      x[i + 1] = x[i] + 1;
      y[i + 1] = y[i];
    } else if (s[i] == 'U') {
      x[i + 1] = x[i];
      y[i + 1] = y[i] + 1;
    } else if (s[i] == 'L') {
      x[i + 1] = x[i] - 1;
      y[i + 1] = y[i];
    } else {
      x[i + 1] = x[i];
      y[i + 1] = y[i] - 1;
    }
  u = x[n];
  v = y[n];
  for (i = 0; i <= n; i++) {
    if ((a - x[i]) * v != (b - y[i]) * u) continue;
    if (u == 0 && a != x[i]) continue;
    if (v == 0 && b != y[i]) continue;
    if (u != 0 && (a - x[i]) % u != 0) continue;
    if (v != 0 && (b - y[i]) % v != 0) continue;
    if ((a - x[i]) * u < 0) continue;
    if ((b - y[i]) * v < 0) continue;
    check = true;
    break;
  }
  if (check)
    std::cout << "Yes";
  else
    std::cout << "No";
  return 0;
}
