#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000000;
const long long MOD = 12345678910;
const long double eps = 1e-13;
const int imax = INT_MAX;
int a, b;
string s;
vector<int> w;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  cin >> a >> b;
  if (a == 0 && b == 0) {
    cout << "Yes";
    return 0;
  }
  cin >> s;
  w.resize(s.size());
  int x = 0, y = 0;
  for (int i = 0; i < s.size(); i++) {
    switch (s[i]) {
      case 'U':
        y++;
        break;
      case 'D':
        y--;
        break;
      case 'L':
        x--;
        break;
      case 'R':
        x++;
        break;
    }
  }
  int x1 = x, y1 = y;
  x = 0;
  y = 0;
  for (int i = 0; i < s.size(); i++) {
    switch (s[i]) {
      case 'U':
        y++;
        break;
      case 'D':
        y--;
        break;
      case 'L':
        x--;
        break;
      case 'R':
        x++;
        break;
    }
    bool f = 0;
    if (x1 == 0 && y1 == 0 && a == x && b == y) f = 1;
    if (x1 == 0 && y1 != 0 && a == x && (b - y) % y1 == 0 && (b - y) / y1 >= 0)
      f = 1;
    if (x1 != 0 && y1 == 0 && b == y && (a - x) % x1 == 0 && (a - x) / x1 >= 0)
      f = 1;
    if (x1 != 0 && y1 != 0 && (b - y) % y1 == 0 && (b - y) / y1 >= 0 &&
        (a - x) % x1 == 0 && (a - x) / x1 >= 0 && (b - y) / y1 == (a - x) / x1)
      f = 1;
    if (f) {
      cout << "Yes";
      return 0;
    }
    if (f) {
      x -= x1;
      y -= y1;
    }
  }
  cout << "No";
  return 0;
}
