#include <bits/stdc++.h>
using namespace std;
long long n, m, x, y, z, a, b, mem[500][5];
string s;
int main() {
  cin >> a >> b;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'U') y++;
    if (s[i] == 'D') y--;
    if (s[i] == 'R') x++;
    if (s[i] == 'L') x--;
    mem[i + 1][0] = x;
    mem[i + 1][1] = y;
  }
  for (int i = 0; i < s.size() + 1; i++) {
    int xx = a - mem[i][0];
    int yy = b - mem[i][1];
    if (x)
      n = xx / x;
    else if (y)
      n = yy / y;
    else
      n = 1;
    if (n >= 0 && n * y == yy && n * x == xx) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
  return 0;
}
