#include <bits/stdc++.h>
using namespace std;
map<int, map<int, int> > m;
long long int lol(long long int a, long long int r) {
  if (a >= 0 && r <= 0) return a;
  if (a <= 0 && r >= 0) return a;
  return a % r;
}
int main() {
  long long int a, b;
  cin >> a >> b;
  string s;
  cin >> s;
  long x = 0;
  long y = 0;
  if (a == 0 && b == 0) {
    cout << "Yes" << endl;
    return 0;
  }
  for (long i = 0; i < s.size(); i++) {
    if (s[i] == 'L') x--;
    if (s[i] == 'R') x++;
    if (s[i] == 'U') y++;
    if (s[i] == 'D') y--;
  }
  long p = 2;
  long w = 0;
  long q = 0;
  int d = 0;
  for (long i = 0; i < s.size(); i++) {
    if (s[i] == 'L') w--;
    if (s[i] == 'R') w++;
    if (s[i] == 'U') q++;
    if (s[i] == 'D') q--;
    long long int u = a - w;
    long long int e = b - q;
    if (x != 0) {
      if (y != 0) {
        long long int v = u / x;
        long long int z = e / y;
        if (v == z && v >= 0 && u % x == 0 && e % y == 0) d = 1;
      } else {
        long long int v = a / x;
        if (e == 0 && v >= 0 && u % x == 0) d = 1;
      }
    } else {
      if (y != 0) {
        long long int z = e / y;
        if (z >= 0 && u == 0 && e % y == 0) d = 1;
      } else {
        if (u == 0 && e == 0) d = 1;
      }
    }
  }
  if (d == 1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
