#include <bits/stdc++.h>
using namespace std;
char str[200];
int a, b;
int gao(int n) {
  if (n == 0) return 0;
  return n > 0 ? 1 : -1;
}
int main() {
  int i, j, l, u;
  scanf("%d%d", &a, &b);
  scanf("%s", str);
  l = 0;
  u = 0;
  if (a == 0 && b == 0) {
    printf("Yes\n");
    return 0;
  }
  for (i = 0; str[i] != '\0'; i++) {
    if (str[i] == 'L') l -= 1;
    if (str[i] == 'R') l += 1;
    if (str[i] == 'U') u += 1;
    if (str[i] == 'D') u -= 1;
  }
  if (l == a && u == b) {
    printf("Yes\n");
    return 0;
  }
  int temp, x = 0, y = 0, flag = 0;
  for (i = 0; str[i] != '\0'; i++) {
    if (str[i] == 'L') x -= 1;
    if (str[i] == 'R') x += 1;
    if (str[i] == 'U') y += 1;
    if (str[i] == 'D') y -= 1;
    if (l == 0 && a - x != 0) continue;
    if (l != 0 && (a - x) % l) continue;
    if (l != 0)
      temp = (a - x) / l;
    else
      temp = 0;
    if (temp < 0) continue;
    if (temp == 0 && l == 0) {
      if (u == 0 && b - y != 0) continue;
      if (u == 0 && b - y == 0) {
        flag = 1;
        break;
      }
      if ((b - y) % u == 0 && (b - y) / u >= 0) {
        flag = 1;
        break;
      }
    } else if (u * temp + y == b) {
      flag = 1;
      break;
    }
  }
  if (flag == 1)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
