#include <bits/stdc++.h>
using namespace std;
void Ios() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  return;
}
long long int ABS(long long int n) { return n >= 0 ? n : -n; }
set<pair<long long int, long long int>> se;
int main() {
  long long int a, b, x = 0, y = 0;
  string s;
  cin >> a >> b >> s;
  for (char i : s) {
    se.insert(make_pair(x, y));
    if (i == 'U')
      y++;
    else if (i == 'D')
      y--;
    else if (i == 'L')
      x--;
    else
      x++;
  }
  for (pair<long long int, long long int> i : se) {
    if (x == 0 && y == 0) {
      if (a == i.first && b == i.second) goto Yes;
    } else if (x == 0) {
      if (a == i.first && (b - i.second) % ABS(y) == 0 &&
          (b - i.second) / y >= 0)
        goto Yes;
    } else if (y == 0) {
      if ((a - i.first) % ABS(x) == 0 && b == i.second &&
          (a - i.first) / x >= 0)
        goto Yes;
    } else if ((a - i.first) % ABS(x) == 0 && (b - i.second) % ABS(y) == 0 &&
               (a - i.first) / x == (b - i.second) / y &&
               (a - i.first) / x >= 0)
      goto Yes;
  }
  cout << "No\n";
  return 0;
Yes:
  cout << "Yes\n";
}
