#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int test = 1;
  while (test--) {
    long long int a, b;
    cin >> a >> b;
    string s;
    cin >> s;
    int n = s.length();
    bool isa = 0;
    long long int nx = 0, ny = 0;
    for (int i = 0; i < n; i++) {
      if (s[i] == 'U') {
        ny++;
      } else if (s[i] == 'D') {
        ny--;
      } else if (s[i] == 'L') {
        nx--;
      } else {
        nx++;
      }
    }
    if (a == nx && b == ny) {
      isa = 1;
    } else if ((nx != 0 && a % nx == 0) && (ny != 0 && b % ny == 0) &&
               (a / nx) == (b / ny) && (a / nx) >= 0) {
      isa = 1;
    } else if (nx == 0 && (ny != 0 && b % ny == 0) && (b / ny) >= 0 && a == 0) {
      isa = 1;
    } else if (ny == 0 && (nx != 0 && a % nx == 0 && (a / nx) >= 0) && b == 0) {
      isa = 1;
    }
    int x = 0, y = 0;
    for (int i = 0; i < n && !isa; i++) {
      if (a == x && b == y) {
        isa = 1;
        break;
      } else if ((nx != 0 && (a - x) % nx == 0) &&
                 (ny != 0 && (b - y) % ny == 0) &&
                 ((a - x) / nx) == ((b - y) / ny) && ((a - x) / nx) >= 0) {
        isa = 1;
        break;
      } else if (nx == 0 &&
                 (ny != 0 && (b - y) % ny == 0 && ((b - y) / ny) >= 0) &&
                 a == x) {
        isa = 1;
      } else if (ny == 0 && (nx != 0 && (a - x) % nx == 0 &&
                             ((a - x) / nx) >= 0 && b == y)) {
        isa = 1;
      }
      if (s[i] == 'U') {
        y++;
      } else if (s[i] == 'D') {
        y--;
      } else if (s[i] == 'L') {
        x--;
      } else {
        x++;
      }
    }
    if (isa) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
  return 0;
}
