#include <bits/stdc++.h>
using namespace std;
int main(void) {
  char s[105];
  bool ans = false;
  vector<pair<int, int> > arr;
  int a, b, x = 0, y = 0;
  scanf("%d %d %s", &a, &b, s);
  arr.push_back(make_pair(x, y));
  for (int i = 0; i < strlen(s); i++) {
    if (s[i] == 'U') y++;
    if (s[i] == 'D') y--;
    if (s[i] == 'L') x--;
    if (s[i] == 'R') x++;
    arr.push_back(make_pair(x, y));
  }
  for (int i = 0; i < arr.size() && !ans; i++) {
    if (x == 0 && y == 0) {
      ans = a == arr[i].first && b == arr[i].second;
    } else if (x == 0 && y != 0) {
      ans = a == arr[i].first && (b - arr[i].second) % y == 0 &&
            (b - arr[i].second) / y >= 0;
    } else if (x != 0 && y == 0) {
      ans = (a - arr[i].first) % x == 0 && (a - arr[i].first) / x >= 0 &&
            b == arr[i].second;
    } else {
      ans = (a - arr[i].first) % x == 0 && (b - arr[i].second) % y == 0 &&
            (a - arr[i].first) / x == (b - arr[i].second) / y &&
            (a - arr[i].first) / x >= 0;
    }
  }
  if (ans)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
