#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[101];
  int a, b, dx, dy, i;
  while (scanf("%d %d", &a, &b) != EOF) {
    scanf("%s", s);
    dx = dy = 0;
    for (i = 0; s[i] != '\0'; i++) {
      if (dx == a && dy == b) break;
      if (s[i] == 'U')
        dy++;
      else if (s[i] == 'D')
        dy--;
      else if (s[i] == 'L')
        dx--;
      else
        dx++;
    }
    if (s[i] == '\0') {
      int dx2 = abs(dx), dy2 = abs(dy);
      for (i = 0; s[i] != '\0'; i++) {
        if (s[i] == 'U')
          b--;
        else if (s[i] == 'D')
          b++;
        else if (s[i] == 'L')
          a++;
        else
          a--;
        if (!a && !b) break;
        int a2 = abs(a), b2 = abs(b);
        if ((long long)a * dy == (long long)b * dx && (long long)b * dy >= 0 &&
            (long long)a * dx >= 0) {
          if (dy && dx) {
            if (a2 % dx2 == 0 && b2 % dy2 == 0) break;
          } else if (!dx && dy) {
            if (!a && b2 % dy2 == 0) break;
          } else if (dx && !dy) {
            if (!b && a2 % dx2 == 0) break;
          }
        }
      }
    }
    if (s[i] != '\0')
      puts("Yes");
    else
      puts("No");
  }
  return 0;
}
