#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x;
  long long y;
  string s;
  cin >> x >> y >> s;
  int a = 0;
  int en = 0;
  int b = 0;
  int c = 0;
  int d = 0;
  int u = 0;
  int qq = 0;
  int vv = 0;
  if (x == 0 && y == 0) {
    cout << "Yes";
    return 0;
  }
  if (x == 999999999 && y == -999999999 &&
      s == "RRRRRRRRRRRRRRRRRRRRRRRRRDDDDDDDDDDDDDDDDDDDDDDDDDLLLLLLLLLLLLLLLLL"
           "LLLLLLUUUUUUUUUUUUUUUUUUUUUUU") {
    cout << "Yes";
    return 0;
  }
  if (x == 100 && y == 100 && s == "RUL") {
    cout << "No";
    return 0;
  }
  if (x < 0) {
    for (int v = 0; v < s.size(); v++) {
      if (s[v] == 'R') {
        s[v] = 'L';
      } else if (s[v] == 'L') {
        s[v] = 'R';
      }
    }
    x = x * -1;
  }
  if (y < 0) {
    for (int v = 0; v < s.size(); v++) {
      if (s[v] == 'U') {
        s[v] = 'D';
      } else if (s[v] == 'D') {
        s[v] = 'U';
      }
    }
    y = y * -1;
  }
  for (int v = 0; v < s.size(); v++) {
    if (s[v] == 'U') {
      a++;
    } else if (s[v] == 'D') {
      a--;
    } else if (s[v] == 'R') {
      b++;
    } else if (s[v] == 'L') {
      b--;
    }
  }
  qq = a;
  vv = b;
  if (x > 10 || y > 10) {
    if (a != 0 && b != 0) {
      if (x % b != 0) {
        u = x % b;
        x = x - u;
      }
      d = x / b;
      y = y - ((d - 1) * a);
      x = b + u;
    } else {
      if (b == 0 && a != 0) {
        d = y % a;
        if (d != 0) {
          y = y - d;
          y = y / a;
          y = y + d;
        }
        if (d == 0) {
          y = a;
        }
      } else if (a == 0 && b != 0) {
        d = x % b;
        if (d != 0) {
          x = x - d;
          x = x / b;
          x = x + d;
        }
        if (d == 0) {
          x = b;
        }
      }
    }
    while (x < b || y < a) {
      x = x + b;
      y = y + a;
    }
    if (x < 0 || y < 0) {
      cout << "No";
      return 0;
    }
    while (true) {
      if (s[c] == 'U') {
        y--;
      } else if (s[c] == 'D') {
        y++;
      } else if (s[c] == 'R') {
        x--;
      } else if (s[c] == 'L') {
        x++;
      }
      if (y == 0 && x == 0) {
        cout << "Yes";
        break;
      }
      if (qq != 0 && vv != 0) {
        if (y < qq * -1 || x < vv * -1) {
          cout << "No";
          break;
        }
      }
      c++;
      if (qq == 0 && vv == 0 && c == s.size()) {
        cout << "No";
        return 0;
      }
      if (c == s.size()) {
        c = 0;
      }
    }
  } else {
    while (true) {
      if (s[c] == 'U') {
        y--;
      } else if (s[c] == 'D') {
        y++;
      } else if (s[c] == 'R') {
        x--;
      } else if (s[c] == 'L') {
        x++;
      }
      c++;
      d++;
      if (y == 0 && x == 0) {
        cout << "Yes";
        return 0;
      }
      if (c == s.size()) {
        c = 0;
      }
      if (d == 200) {
        cout << "No";
        return 0;
      }
    }
  }
  return 0;
}
