#include <bits/stdc++.h>
using namespace std;
int a, b;
string s;
int dx = 0, dy = 0;
int main() {
  cin >> a >> b;
  if (a == 0 && b == 0) {
    puts("Yes");
    return 0;
  }
  cin >> s;
  for (auto c : s) {
    if (c == 'R')
      dx++;
    else if (c == 'L')
      dx--;
    else if (c == 'U')
      dy++;
    else
      dy--;
  }
  if (dx == 0 && dy == 0) {
    for (auto c : s) {
      if (c == 'R')
        dx++;
      else if (c == 'L')
        dx--;
      else if (c == 'U')
        dy++;
      else
        dy--;
      if (a == dx && b == dy) {
        puts("Yes");
        return 0;
      }
    }
    puts("No");
    return 0;
  }
  if (dy == 0) {
    int k = a / dx;
    k = k - 200;
    k = max(k, 0);
    int l = 500;
    a -= (dx * k);
    dx = 0, dy = 0;
    if (a == dx && b == dy) {
      puts("Yes");
      return 0;
    }
    while (l--) {
      for (auto c : s) {
        if (c == 'R')
          dx++;
        else if (c == 'L')
          dx--;
        else if (c == 'U')
          dy++;
        else
          dy--;
        if (a == dx && b == dy) {
          puts("Yes");
          return 0;
        }
      }
    }
    puts("No");
    return 0;
  }
  if (dx == 0) {
    int k = b / dy;
    k = k - 200;
    k = max(k, 0);
    int l = 500;
    b -= (dy * k);
    dx = 0, dy = 0;
    if (a == dx && b == dy) {
      puts("Yes");
      return 0;
    }
    while (l--) {
      for (auto c : s) {
        if (c == 'R')
          dx++;
        else if (c == 'L')
          dx--;
        else if (c == 'U')
          dy++;
        else
          dy--;
        if (a == dx && b == dy) {
          puts("Yes");
          return 0;
        }
      }
    }
    puts("No");
    return 0;
  }
  int x = min(a / dx, b / dy);
  a -= (max(x - 200, 0) * dx);
  b -= (max(0, x - 200) * dy);
  dx = 0, dy = 0;
  if (a == dx && b == dy) {
    puts("Yes");
    return 0;
  }
  int k = 500;
  while (k--) {
    for (auto c : s) {
      if (c == 'R')
        dx++;
      else if (c == 'L')
        dx--;
      else if (c == 'U')
        dy++;
      else
        dy--;
      if (a == dx && b == dy) {
        puts("Yes");
        return 0;
      }
    }
  }
  puts("No");
  return 0;
}
