#include <bits/stdc++.h>
using namespace std;
bool IsSame(int x, int a) {
  if (x > 0 && a > 0) return true;
  if (x < 0 && a < 0) return true;
  if (x == 0 && a == 0) return true;
  return false;
}
int main() {
  char str[200];
  int i, j, a, b;
  while (scanf("%d%d%s", &a, &b, str) != EOF) {
    int len = strlen(str);
    int x = 0, y = 0;
    int flag = 0;
    for (i = 0; i < len; i++) {
      if (x == a && y == b) flag = 1;
      if (str[i] == 'U')
        y++;
      else if (str[i] == 'D')
        y--;
      else if (str[i] == 'L')
        x--;
      else
        x++;
      if (x == a && y == b) flag = 1;
    }
    if (flag == 1) {
      puts("Yes");
      continue;
    }
    int k = 0;
    if (x != 0) {
      k = a / x;
    }
    if (y != 0) {
      k = max(k, b / y);
    }
    if (k > 100) {
      k -= 100;
    } else {
      k = 0;
    }
    a = a - x * k;
    b = b - y * k;
    for (j = 200; j >= 0; j--) {
      for (i = 0; i < len; i++) {
        if (x == a && y == b) flag = 1;
        if (str[i] == 'U')
          y++;
        else if (str[i] == 'D')
          y--;
        else if (str[i] == 'L')
          x--;
        else
          x++;
        if (x == a && y == b) flag = 1;
      }
    }
    if (flag == 1)
      puts("Yes");
    else
      puts("No");
  }
  return 0;
}
