#include <bits/stdc++.h>
using namespace std;
int a, b;
vector<pair<int, int> > V;
char str[147];
const int dx[4] = {0, -1, 1, 0};
const int dy[4] = {-1, 0, 0, 1};
const char dir[4] = {'D', 'L', 'R', 'U'};
int main() {
  scanf("%d%d%s", &a, &b, str);
  int len = strlen(str);
  int x(0), y(0);
  V.push_back(pair<int, int>(x, y));
  for (__typeof(len) i = 0; i < (len); ++i)
    for (__typeof(4) j = 0; j < (4); ++j)
      if (dir[j] == str[i]) {
        x += dx[j];
        y += dy[j];
        V.push_back(pair<int, int>(x, y));
        break;
      }
  for (pair<int, int> i : V) {
    int k(0);
    if (x != 0) k = (a - i.first) / x;
    if (y != 0) k = (b - i.second) / y;
    if (k >= 0 && i.second + k * y == b && i.first + k * x == a) {
      printf("Yes\n");
      return 0;
    }
  }
  printf("No\n");
  return 0;
}
