#include <bits/stdc++.h>
using namespace std;
int a, b, len, dx[] = {0, 0, -1, 1}, dy[] = {1, -1, 0, 0}, mx[128], my[128];
char buf[128];
const char* d = "UDLR";
int main() {
  scanf("%d%d%s", &a, &b, buf);
  len = strlen(buf);
  int sx, sy, nx, ny, k;
  sx = sy = mx[0] = my[0] = 0;
  for (int i = 0; i < len; i++) {
    for (int j = 0; j < 4; j++)
      if (buf[i] == d[j]) {
        sx += dx[j];
        sy += dy[j];
        mx[i + 1] = sx;
        my[i + 1] = sy;
        break;
      }
  }
  int f = 0;
  for (int i = 0; i <= len; i++) {
    if (sy == 0) {
      if (sx == 0)
        k = 0;
      else
        k = (a - mx[i]) / sx;
    } else
      k = (b - my[i]) / sy;
    if (k < 0) k = 0;
    if (b == sy * k + my[i] && a == sx * k + mx[i]) {
      f = 1;
      break;
    }
  }
  if (f)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
