#include <bits/stdc++.h>
using namespace std;
const int N = (int)(2e3 + 20);
int dx[N], dy[N];
int a, b;
int deltaX, deltaY;
bool check(int x, int y) {
  if (deltaX == 0 && deltaY == 0) return x == a && y == b;
  if (deltaX == 0) {
    return x == a && ((b - y) % deltaY == 0) && ((b - y) / deltaY >= 0);
  }
  if (deltaY == 0) {
    return y == b && ((a - x) % deltaX == 0) && ((a - x) / deltaX >= 0);
  }
  if ((a - x) % deltaX != 0) return false;
  if ((b - y) % deltaY != 0) return false;
  return (b - y) / deltaY >= 0 && ((b - y) / deltaY == (a - x) / deltaX);
}
int main() {
  ios_base::sync_with_stdio(0);
  dy['U'] = 1;
  dy['D'] = -1;
  dx['R'] = 1;
  dx['L'] = -1;
  cin >> a >> b;
  string s;
  cin >> s;
  int sx = 0, sy = 0;
  int ex = 0, ey = 0;
  for (int i = 0; i < s.length(); ++i) {
    ex += dx[s[i]];
    ey += dy[s[i]];
  }
  deltaX = ex - sx;
  deltaY = ey - sy;
  ex = 0;
  ey = 0;
  bool ans = check(ex, ey);
  for (int i = 0; i < s.length(); ++i) {
    ex += dx[s[i]];
    ey += dy[s[i]];
    ans |= check(ex, ey);
  }
  cout << (ans ? "Yes" : "No");
  return 0;
}
