#include <bits/stdc++.h>
using namespace std;
int a, b, N;
char cmds[1024];
int hist[1024][2];
int main() {
  scanf("%d%d", &a, &b);
  scanf("%s", cmds);
  N = strlen(cmds);
  int x = 0, y = 0;
  for (int i = 0; i < N; i++) {
    hist[i][0] = x;
    hist[i][1] = y;
    char ch = cmds[i];
    if (ch == 'U') y++;
    if (ch == 'D') y--;
    if (ch == 'L') x--;
    if (ch == 'R') x++;
  }
  int dx = x, dy = y;
  char found = 0;
  for (int i = 0; i < N; i++) {
    long long na = a - hist[i][0];
    long long nb = b - hist[i][1];
    if (dx == 0 && dy == 0) {
      if (na == 0 && nb == 0) found = 1;
    } else if (dx == 0) {
      if (nb % dy == 0 && na == 0 && (nb / dy >= 0)) found = 1;
    } else if (dy == 0) {
      if (na % dx == 0 && nb == 0 && (na / dx >= 0)) found = 1;
    } else {
      if ((na % dx == 0) && (nb % dy == 0) && ((na / dx) == (nb / dy)) &&
          ((na / dx) >= 0))
        found = 1;
    }
  }
  printf("%s\n", found ? "Yes" : "No");
  return 0;
}
