#include <bits/stdc++.h>
using namespace std;
const int Maxn = 2e5 + 7;
long long read() {
  long long x = 0, f = 1;
  char s = getchar();
  while (s < '0' || s > '9') {
    if (s == '-') f = -1;
    s = getchar();
  }
  while (s >= '0' && s <= '9') {
    x = x * 10 + s - '0';
    s = getchar();
  }
  return x * f;
}
long long n;
long long x1, x2, yy, y2;
long long sx[Maxn], sy[Maxn];
bool check(long long mid) {
  long long a = mid / n;
  long long b = mid % n;
  long long x = a * sx[n] + sx[b] + x1;
  long long y = a * sy[n] + sy[b] + yy;
  long long ans = abs(x - x2) + abs(y - y2);
  return ans <= mid;
}
char s[Maxn];
int main() {
  x1 = read();
  yy = read();
  x2 = read();
  y2 = read();
  n = read();
  scanf("%s", s + 1);
  for (int i = 1; i <= n; i++) {
    sx[i] = sx[i - 1];
    sy[i] = sy[i - 1];
    if (s[i] == 'R') sx[i]++;
    if (s[i] == 'U') sy[i]++;
    if (s[i] == 'L') sx[i]--;
    if (s[i] == 'D') sy[i]--;
  }
  long long l = 0, r = 1e18, ans = -1;
  while (l <= r) {
    long long mid = (l + r) >> 1;
    if (check(mid)) {
      r = mid - 1;
      ans = mid;
    } else
      l = mid + 1;
  }
  cout << ans;
}
