#include <bits/stdc++.h>
int g[110][2];
char s[110];
int main() {
  int i, n, u, v, x, y, dx, dy, k;
  scanf("%d%d%s", &u, &v, s);
  x = y = 0;
  k = 2000000000;
  for (i = 0; s[i]; i++) {
    if (s[i] == 'U') y++;
    if (s[i] == 'D') y--;
    if (s[i] == 'L') x--;
    if (s[i] == 'R') x++;
    g[i + 1][0] = x;
    g[i + 1][1] = y;
  }
  n = i;
  for (i = 0; i <= n; i++) {
    dx = u - g[i][0];
    dy = v - g[i][1];
    if (x)
      k = dx / x;
    else if (y)
      k = dy / y;
    else
      k = 1;
    if (k >= 0 && x * k == dx && y * k == dy) break;
  }
  puts(i <= n ? "Yes" : "No");
  return 0;
}
