#include <bits/stdc++.h>
using namespace std;
int main() {
  int x, y, dx, dy, X[102] = {0}, Y[102] = {0}, i, len;
  char s[102];
  scanf("%d %d %s", &x, &y, s);
  for (i = 0; s[i]; ++i) switch (s[i]) {
      case 'U':
        X[i + 1] = X[i], Y[i + 1] = Y[i] + 1;
        break;
      case 'D':
        X[i + 1] = X[i], Y[i + 1] = Y[i] - 1;
        break;
      case 'L':
        X[i + 1] = X[i] - 1, Y[i + 1] = Y[i];
        break;
      case 'R':
        X[i + 1] = X[i] + 1, Y[i + 1] = Y[i];
    }
  dx = X[i], dy = Y[i], len = i;
  for (i = 0; i <= len; ++i)
    if (X[i] == x && Y[i] == y)
      break;
    else if (((dx >= 0 && x >= X[i]) || (dx < 0 && x < X[i])) &&
             ((dy >= 0 && y >= Y[i]) || (dy < 0 && y < Y[i]))) {
      if (!dx && dy)
        if (x == X[i] && (y - Y[i]) % dy == 0)
          break;
        else
          ;
      else if (dx && !dy)
        if ((x - X[i]) % dx == 0 && y == Y[i])
          break;
        else
          ;
      else if (dx && dy)
        if ((x - X[i]) % dx == 0 && (y - Y[i]) % dy == 0 &&
            (x - X[i]) / dx == (y - Y[i]) / dy)
          break;
    }
  printf("%s\n", i <= len ? "Yes" : "No");
  return 0;
}
