#include <bits/stdc++.h>
using namespace std;
int dx[] = {0, 0, -1, 1};
int dy[] = {1, -1, 0, 0};
int px[105], py[105];
int main() {
  int x, y, Sz, d, z;
  bool f = 0;
  string s;
  cin >> x >> y >> s;
  Sz = s.size();
  px[0] = py[0] = 0;
  for (int i = 0; i < Sz; i++) {
    if (s[i] == 'U')
      d = 0;
    else if (s[i] == 'D')
      d = 1;
    else if (s[i] == 'L')
      d = 2;
    else
      d = 3;
    px[i + 1] = px[i] + dx[d];
    py[i + 1] = py[i] + dy[d];
  }
  for (int i = 0; i <= Sz; i++) {
    if (px[Sz] != 0) z = (x - px[i]) / px[Sz];
    if (py[Sz] != 0) z = (y - py[i]) / py[Sz];
    if (z < 0) continue;
    if (z * px[Sz] == (x - px[i]) && z * py[Sz] == (y - py[i])) f = 1;
  }
  if (f)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
