#include <bits/stdc++.h>
int get(int x, int a) {
  if (a == 0 && x == 0) return 2000000000;
  if (a == 0) return 0;
  if (x == 0) return -2000000000;
  if (a % x == 0)
    return a / x;
  else
    return -2000000000;
}
int main() {
  int a, b, X[105] = {0}, Y[105] = {0};
  char str[1005];
  while (scanf("%d %d %s", &a, &b, str) != EOF) {
    if (a == 0 && b == 0) {
      puts("Yes");
      continue;
    }
    int i, x = 0, y = 0;
    for (i = 0; str[i]; i++) {
      if (str[i] == 'U')
        y += 1;
      else if (str[i] == 'D')
        y -= 1;
      else if (str[i] == 'L')
        x -= 1;
      else
        x += 1;
      X[i] = x, Y[i] = y;
    }
    for (i = 0; str[i]; i++) {
      int a1 = a - X[i];
      int b1 = b - Y[i];
      int k1 = get(x, a1);
      int k2 = get(y, b1);
      if (k1 < 0 || k2 < 0) continue;
      if (k1 == 2000000000 || k2 == 2000000000) break;
      if (k1 == -2000000000 || k2 == -2000000000) continue;
      if (k1 == k2) break;
    }
    puts(str[i] ? "Yes" : "No");
  }
  return 0;
}
