#include <bits/stdc++.h>
using namespace std;
int a, b;
char str[200];
int s[200][2];
int c[200][2];
int main() {
  while (~scanf("%d%d", &a, &b)) {
    scanf("%s", str);
    memset(s, 0, sizeof(s));
    memset(c, 0, sizeof(c));
    int k = strlen(str);
    int ax = 0;
    int ay = 0;
    for (int i = 0; i <= k; i++) {
      if (str[i] == 'U') {
        ay++;
      }
      if (str[i] == 'D') {
        ay--;
      }
      if (str[i] == 'L') {
        ax--;
      }
      if (str[i] == 'R') {
        ax++;
      }
    }
    if (ax == 0 && ay == 0 && a == 0 && b == 0) {
      printf("Yes\n");
      continue;
    }
    if (a == 0 && b == 0) {
      printf("Yes\n");
      continue;
    }
    for (int i = 0; i < k; i++) {
      for (int j = 0; j <= i; j++) {
        if (str[j] == 'U') {
          s[i][1]++;
        }
        if (str[j] == 'D') {
          s[i][1]--;
        }
        if (str[j] == 'L') {
          s[i][0]--;
        }
        if (str[j] == 'R') {
          s[i][0]++;
        }
      }
    }
    bool f = false;
    for (int i = 0; i < k; i++) {
      int wa = a - s[i][0];
      int wb = b - s[i][1];
      if ((ax == 0 && wa == 0 && ay == 0 && wb == 0) ||
          (ay != 0 && ax == 0 && wa == 0 && wb % ay == 0 && wb / ay >= 0) ||
          (ax != 0 && ay == 0 && wb == 0 && wa % ax == 0 && wa / ax >= 0) ||
          (ax != 0 && ay != 0 && wa % ax == 0 && wb % ay == 0 &&
           wa / ax == wb / ay && wa / ax >= 0)) {
        f = true;
        break;
      }
    }
    if (f) {
      printf("Yes\n");
    } else {
      printf("No\n");
    }
  }
  return 0;
}
