#include <bits/stdc++.h>
using namespace std;
char s[105];
int a, b, x, y, p1, p2;
bool check(int k1, int k2) {
  if (k1 == 0 && k2 == 0) return true;
  if (x == 0 && y == 0) {
    if (k1 == 0 && k2 == 0) return true;
    return false;
  }
  if (x == 0) {
    if (k1 == 0 && (long long)y * k2 > 0 && k2 % y == 0) return true;
    return false;
  }
  if (y == 0) {
    if (k2 == 0 && (long long)x * k1 > 0 && k1 % x == 0) return true;
    return false;
  }
  if ((long long)x * k2 == (long long)y * k1 && (long long)x * k1 > 0 &&
      (long long)y * k2 > 0 && k1 % x == 0 && k2 % y == 0)
    return true;
  return false;
}
int main() {
  scanf("%d%d%s", &a, &b, s);
  x = 0;
  y = 0;
  for (int i = 0; s[i]; i++) {
    if (s[i] == 'L')
      x--;
    else if (s[i] == 'R')
      x++;
    else if (s[i] == 'D')
      y--;
    else
      y++;
  }
  if (check(a, b)) {
    puts("Yes");
    return 0;
  }
  int len = strlen(s);
  for (int i = len - 1; i >= 0; i--) {
    p1 = a, p2 = b;
    for (int j = i; j >= 0; j--) {
      if (s[j] == 'L')
        p1++;
      else if (s[j] == 'R')
        p1--;
      else if (s[j] == 'D')
        p2++;
      else
        p2--;
    }
    if (check(p1, p2)) {
      puts("Yes");
      return 0;
    }
  }
  puts("No");
  return 0;
}
