#include <bits/stdc++.h>
using namespace std;
void fun(char second, pair<int, int> &p) {
  if (second == 'U')
    p.second -= 1;
  else if (second == 'D')
    p.second -= -1;
  else if (second == 'R')
    p.first -= 1;
  else
    p.first -= -1;
}
bool Fun(pair<int, int> p1, pair<int, int> p2) {
  if ((p1.first == 0 && p2.first != 0) || (p1.second == 0 && p2.second != 0))
    return false;
  bool b1 = (p1.first == 0 && p2.first == 0),
       b2 = (p1.second == 0 && p2.second == 0);
  int x1, x2;
  if (!b1) {
    if (p2.first % p1.first != 0) return false;
    x1 = p2.first / p1.first;
    if (x1 < 0) return false;
  }
  if (!b2) {
    if (p2.second % p1.second != 0) return false;
    x2 = p2.second / p1.second;
    if (x2 < 0) return false;
  }
  if (b1 || b2) return true;
  if (x1 == x2) return true;
  return false;
}
int main() {
  pair<int, int> xy;
  scanf("%d %d", &xy.first, &xy.second);
  string second;
  cin >> second;
  pair<int, int> p = make_pair(0, 0);
  for (int i = 0; i < (int)second.size(); i++) fun(second[i], p);
  p.first *= -1;
  p.second *= -1;
  bool b = Fun(p, xy);
  for (int i = 0; i < (int)second.size(); i++) {
    fun(second[i], xy);
    b |= Fun(p, xy);
  }
  if (b)
    cout << "Yes\n";
  else
    cout << "No\n";
  return 0;
}
