#include <bits/stdc++.h>
using namespace std;
int x, xx, xxx, y, yy, dp[100005][3], len;
char a[100005];
int main() {
  scanf("%d %d", &x, &y);
  scanf("%s", a);
  len = strlen(a);
  for (int i = 0; i <= len - 1; i++) {
    if (a[i] == 'U')
      yy++;
    else if (a[i] == 'D')
      yy--;
    else if (a[i] == 'L')
      xx--;
    else
      xx++;
    dp[i][0] = xx;
    dp[i][1] = yy;
    if (xx == x && yy == y) {
      printf("Yes");
      return 0;
    }
  }
  int ft = (xx == 0 ? INT_MAX : x / xx), sd = (yy == 0 ? INT_MAX : y / yy);
  int turn = min(max(ft - 1000, 0), max(sd - 1000, 0));
  int xxx = turn * xx, yyy = turn * yy;
  for (int i = 1; i <= 1001; i++) {
    for (int j = 0; j <= len - 1; j++) {
      if (xxx + dp[j][0] == x && yyy + dp[j][1] == y) {
        printf("Yes");
        return 0;
      }
    }
    xxx += xx;
    yyy += yy;
  }
  if (!x && !y)
    printf("Yes");
  else
    printf("No");
}
