#include <bits/stdc++.h>
using namespace std;
const int dx[4] = {0, 0, -1, 1}, dy[4] = {1, -1, 0, 0};
int A, B, X, Y, len;
char str[110];
int main() {
  scanf("%d%d", &A, &B);
  scanf("%s", str + 1);
  len = strlen(str + 1);
  if (A == 0 && B == 0) {
    printf("Yes\n");
    return 0;
  }
  for (int i = 1; i <= len; ++i) {
    if (str[i] == 'U')
      str[i] = 0;
    else if (str[i] == 'D')
      str[i] = 1;
    else if (str[i] == 'L')
      str[i] = 2;
    else if (str[i] == 'R')
      str[i] = 3;
  }
  for (int i = 1; i <= len; ++i) {
    X += dx[str[i]], Y += dy[str[i]];
    if (X == A && Y == B) {
      printf("Yes\n");
      return 0;
    }
  }
  if (X == 0 && Y == 0) {
    printf("No\n");
    return 0;
  }
  int tA, tB;
  for (int i = 0; i < len; ++i) {
    tA = A, tB = B;
    for (int j = i; j; --j) {
      tA = tA - dx[str[j]];
      tB = tB - dy[str[j]];
    }
    if (X && Y) {
      if (tA % X == 0 && tB % Y == 0 && tA / X == tB / Y && tA / X > 0) {
        printf("Yes\n");
        return 0;
      }
    } else {
      if (X == 0 && tA == 0 && tB % Y == 0 && tB / Y > 0) {
        printf("Yes\n");
        return 0;
      }
      if (Y == 0 && tB == 0 && tA % X == 0 && tA / X > 0) {
        printf("Yes\n");
        return 0;
      }
    }
  }
  printf("No\n");
  return 0;
}
