#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
int a, b, x, y, d;
string s;
bool test(int x1, int y1) {
  for (int c = 0; c < (1000); c++)
    for (int i = 0; i < (d); i++) {
      if (a == x1 && b == y1) return true;
      switch (s[i]) {
        case 'U':
          y1++;
          break;
        case 'D':
          y1--;
          break;
        case 'L':
          x1--;
          break;
        case 'R':
          x1++;
          break;
      }
    }
  return false;
}
int main() {
  cin >> a >> b;
  cin >> s;
  d = s.length();
  x = 0;
  y = 0;
  for (int i = 0; i < (d); i++) {
    switch (s[i]) {
      case 'U':
        y++;
        break;
      case 'D':
        y--;
        break;
      case 'L':
        x--;
        break;
      case 'R':
        x++;
        break;
    }
  }
  int x_v = x;
  int y_v = y;
  if (x_v == 0 && y_v == 0)
    printf("%s\n", test(0, 0) ? "Yes\n" : "No\n");
  else if (x_v == 0) {
    int kor = max(0, abs(b) / abs(y_v) - 100);
    printf("%s\n", test(kor * x_v, kor * y_v) ? "Yes\n" : "No\n");
  } else if (y_v == 0) {
    int kor = max(0, abs(a) / abs(x_v) - 100);
    printf("%s\n", test(kor * x_v, kor * y_v) ? "Yes\n" : "No\n");
  } else {
    int kor = max(0, max(abs(a) / abs(x_v) - 100, abs(b) / abs(y_v) - 100));
    printf("%s\n", test(kor * x_v, kor * y_v) ? "Yes\n" : "No\n");
  }
  return 0;
}
