#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, x = 0, y = 0, k, p, q;
  cin >> a >> b;
  char c[101];
  cin >> c;
  int n = strlen(c);
  if (a == 0 and b == 0) {
    cout << "Yes";
    return 0;
  }
  for (int i = 0; i < n; i++) {
    if (c[i] == 'R')
      x++;
    else if (c[i] == 'L')
      x--;
    else if (c[i] == 'U')
      y++;
    else
      y--;
  }
  p = 0;
  q = 0;
  for (int i = 0; i < n; i++) {
    if (c[i] == 'R')
      p++;
    else if (c[i] == 'L')
      p--;
    else if (c[i] == 'U')
      q++;
    else
      q--;
    if (x and y) {
      if ((a - p) % x == 0 and (b - q) % y == 0 and
          (a - p) / x == (b - q) / y and (a - p) / x >= 0) {
        cout << "Yes";
        return 0;
      }
    } else if (!x and y) {
      if ((b - q) % y == 0 and (b - q) / y >= 0 and a - p == 0) {
        cout << "Yes";
        return 0;
      }
    } else if (x and !y) {
      if ((a - p) % x == 0 and (a - p) / x >= 0 and b - q == 0) {
        cout << "Yes";
        return 0;
      }
    } else if (!x and !y) {
      if (a == p and b == q) {
        cout << "Yes";
        return 0;
      }
    }
  }
  cout << "No";
}
