#include <bits/stdc++.h>
using namespace std;
int a, b, x, y;
bool solve(int c, int d) {
  if (x == 0 and y == 0) return c == a and d == b;
  if (x == 0) return c == a and (b - d) / y >= 0 and (b - d) % y == 0;
  if (y == 0) return d == b and (a - c) / x >= 0 and (a - c) % x == 0;
  return (a - c) / x >= 0 and (a - c) % x == 0 and (b - d) / y >= 0 and
         (b - d) % y == 0 and (b - d) / y == (a - c) / x;
}
int main() {
  string s;
  cin >> a >> b >> s;
  x = 0;
  y = 0;
  for (int i = 0; i < s.size(); ++i) {
    if (s[i] == 'U')
      ++y;
    else if (s[i] == 'D')
      --y;
    else if (s[i] == 'L')
      --x;
    else
      ++x;
  }
  bool ok = (a == 0 and b == 0);
  int c = 0, d = 0;
  for (int i = 0; i < s.size() and not ok; ++i) {
    if (s[i] == 'U')
      ++d;
    else if (s[i] == 'D')
      --d;
    else if (s[i] == 'L')
      --c;
    else
      ++c;
    ok = solve(c, d);
  }
  cout << (ok ? "Yes" : "No") << endl;
}
