#include <bits/stdc++.h>
using namespace std;
int v[409][409];
int a, b;
int main() {
  scanf("%d%d", &a, &b);
  char ch[1024];
  scanf("%s", ch);
  int x = 200, y = 200;
  v[200][200] = 1;
  int n = strlen(ch);
  for (int i = 0; i < n; i++) {
    if (ch[i] == 'U') y += 1;
    if (ch[i] == 'D') y -= 1;
    if (ch[i] == 'L') x -= 1;
    if (ch[i] == 'R') x += 1;
    v[x][y] = 1;
  }
  int X = x - 200, Y = y - 200;
  if (X == 0 && Y == 0) {
    if (v[a + 200][b + 200])
      printf("Yes\n");
    else
      printf("No\n");
    return 0;
  }
  for (int i = 0; i < 400; i++)
    for (int j = 0; j < 400; j++)
      if (v[i][j]) {
        int tx = a - i + 200;
        int ty = b - j + 200;
        if (1ll * tx * Y == 1ll * ty * X && 1ll * tx * X >= 0 &&
            1ll * ty * Y >= 0) {
          if ((X == 0 || tx % X == 0) && (Y == 0 || ty % Y == 0)) {
            printf("Yes\n");
            return 0;
          }
        }
      }
  printf("No\n");
  return 0;
}
