#include <bits/stdc++.h>
using namespace std;
int xxx, yyy;
char str[1000];
int xx[1000], yy[1000];
int x, y;
int main() {
  scanf("%d%d", &xxx, &yyy);
  scanf(" %s", str);
  int l = strlen(str);
  int x = 0, y = 0;
  for (int i = 0; i < l; i++) {
    xx[i] = x;
    yy[i] = y;
    if (str[i] == 'R') x++;
    if (str[i] == 'L') x--;
    if (str[i] == 'U') y++;
    if (str[i] == 'D') y--;
  }
  for (int i = 0; i < l; i++) {
    if (x != 0 && y != 0) {
      if (((xxx - xx[i]) % x == 0) && ((yyy - yy[i]) % y == 0) &&
          ((xxx - xx[i]) / x >= 0) &&
          (((xxx - xx[i]) / x) == ((yyy - yy[i]) / y))) {
        printf("Yes\n");
        return 0;
      }
    }
    if (x == 0 && y != 0) {
      if (xxx == xx[i] && (yyy - yy[i]) % y == 0 && ((yyy - yy[i]) / y >= 0)) {
        printf("Yes\n");
        return 0;
      }
    }
    if (y == 0 && x != 0) {
      if (yyy == yy[i] && ((xxx - xx[i]) % x == 0) &&
          ((xxx - xx[i]) / x >= 0)) {
        printf("Yes\n");
        return 0;
      }
    }
    if (x == 0 && y == 0) {
      if (yyy == yy[i] && xxx == xx[i]) {
        printf("Yes\n");
        return 0;
      }
    }
  }
  printf("No\n");
  return 0;
}
