#include <bits/stdc++.h>
using namespace std;
const int INF = (int)1e9;
const long long INF64 = (long long)1e18;
const long double eps = 1e-9;
const long double pi = 3.14159265358979323846;
char str[300];
int main() {
  long long a, b;
  long long nx, ny;
  long long sx, sy;
  long long k;
  bool flag;
  int len, i;
  while (cin >> a >> b >> str) {
    len = strlen(str);
    nx = ny = 0;
    flag = false;
    for (i = 0; i < len && !flag; i++) {
      if (nx == a && ny == b) flag = true;
      if (str[i] == 'U') ny++;
      if (str[i] == 'D') ny--;
      if (str[i] == 'R') nx++;
      if (str[i] == 'L') nx--;
      if (nx == a && ny == b) flag = true;
    }
    sx = sy = 0;
    for (i = 0; i < len && !flag; i++) {
      if (str[i] == 'U') sy++;
      if (str[i] == 'D') sy--;
      if (str[i] == 'R') sx++;
      if (str[i] == 'L') sx--;
      if (nx) {
        k = (a - sx) / nx;
        if (k >= 0) {
          if (k * nx == a - sx && k * ny == b - sy) flag = true;
        }
      } else if (ny) {
        k = (b - sy) / ny;
        if (k >= 0) {
          if (k * nx == a - sx && k * ny == b - sy) flag = true;
        }
      }
    }
    printf("%s\n", flag ? "Yes" : "No");
  }
  return 0;
}
