#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, vx = 0, vy = 0, cx = 0, cy = 0;
  char s[101];
  scanf("%d%d%s", &a, &b, s);
  for (char *c = s; *c; ++c)
    if (*c == 'U')
      vy++;
    else if (*c == 'D')
      vy--;
    else if (*c == 'L')
      vx--;
    else
      vx++;
  for (char *c = s; *c; ++c) {
    int dx = a - cx, dy = b - cy;
    if (vx == 0 && vy == 0 && dx == 0 && dy == 0) {
      printf("Yes\n");
      return 0;
    }
    if (vx == 0 && dx == 0 && vy != 0 && dy % vy == 0 && dy / vy >= 0) {
      printf("Yes\n");
      return 0;
    } else if (vy == 0 && dy == 0 && vx != 0 && dx % vx == 0 && dx / vx >= 0) {
      printf("Yes\n");
      return 0;
    }
    if (vx != 0 && vy != 0 && dx % vx == 0 && dy % vy == 0 &&
        dx / vx == dy / vy && dx / vx >= 0) {
      printf("Yes\n");
      return 0;
    }
    if (*c == 'U')
      cy++;
    else if (*c == 'D')
      cy--;
    else if (*c == 'L')
      cx--;
    else
      cx++;
  }
  printf("No\n");
  return 0;
}
