#include <bits/stdc++.h>
using namespace std;
char ss[111];
int aa, bb;
int main() {
  cin >> aa >> bb;
  scanf("%s", ss);
  int n = strlen(ss), i, dx, dy;
  dx = dy = 0;
  for (i = 0; i < n; ++i)
    if (ss[i] == 'U')
      ++dy;
    else if (ss[i] == 'D')
      --dy;
    else if (ss[i] == 'L')
      --dx;
    else
      ++dx;
  bool flag = false;
  int nx, ny;
  nx = ny = 0;
  for (i = 0; i < n; ++i) {
    if (i > 0) {
      if (ss[i - 1] == 'U')
        ++ny;
      else if (ss[i - 1] == 'D')
        --ny;
      else if (ss[i - 1] == 'L')
        --nx;
      else
        ++nx;
    }
    if (dx == 0 && dy == 0) {
      if (aa == nx && bb == ny) flag = true;
    } else if (dx == 0) {
      if (aa != nx) continue;
      if ((bb - ny) % dy != 0) continue;
      if ((bb - ny) / dy >= 0) flag = true;
    } else if (dy == 0) {
      if (bb != ny) continue;
      if ((aa - nx) % dx != 0) continue;
      if ((aa - nx) / dx >= 0) flag = true;
    } else {
      if ((aa - nx) % dx != 0) continue;
      if ((bb - ny) % dy != 0) continue;
      if ((aa - nx) / dx >= 0 && (bb - ny) / dy == (aa - nx) / dx) flag = true;
    }
    if (flag) break;
  }
  if (flag)
    puts("Yes");
  else
    puts("No");
  return 0;
}
