#include <bits/stdc++.h>
char s[101];
int x[101], y[101];
int main() {
  int l, r, i, min = 0;
  scanf("%d%d%s", &l, &r, s);
  int n = strlen(s);
  for (i = 0; i < n; ++i) {
    if (s[i] == 'R')
      x[i + 1] = x[i] + 1, y[i + 1] = y[i];
    else if (s[i] == 'L')
      x[i + 1] = x[i] - 1, y[i + 1] = y[i];
    else if (s[i] == 'U')
      x[i + 1] = x[i], y[i + 1] = y[i] + 1;
    else
      x[i + 1] = x[i], y[i + 1] = y[i] - 1;
  }
  if (x[n] == 0 && y[n] == 0) {
    for (i = 0; i < n; ++i) {
      if (x[i] == l && y[i] == r) {
        printf("Yes");
        return 0;
      }
    }
    printf("No");
    return 0;
  } else if (x[n] == 0) {
    for (i = 0; i < n; ++i) {
      if (x[i] == l && (r - y[i]) % y[n] == 0 && (r - y[i]) / y[n] >= 0) {
        printf("Yes");
        return 0;
      }
    }
    printf("No");
    return 0;
  } else if (y[n] == 0) {
    for (i = 0; i < n; ++i) {
      if (y[i] == r && (l - x[i]) % x[n] == 0 && (l - x[i]) / x[n] >= 0) {
        printf("Yes");
        return 0;
      }
    }
    printf("No");
    return 0;
  }
  if (l % x[n] == 0 && r % y[n] == 0 && l / x[n] == r / y[n] && l / x[n] >= 0) {
    printf("Yes");
    return 0;
  }
  for (i = 1; i < n; ++i) {
    if ((l - x[i]) % x[n] == 0 && (r - y[i]) % y[n] == 0 &&
        (l - x[i]) / x[n] == (r - y[i]) / y[n] && (l - x[i]) / x[n] >= 0) {
      printf("Yes");
      return 0;
    }
  }
  printf("No");
  return 0;
}
