#include <bits/stdc++.h>
using namespace std;
const int INF = int(1e9 + 7);
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long x1, y1, x2, y2, n, cx = 0, cy = 0, px, py;
  long long lo, mid, hi, r = -1;
  string s;
  cin >> x1 >> y1;
  cin >> x2 >> y2;
  cin >> n >> s;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'U') cy++;
    if (s[i] == 'D') cy--;
    if (s[i] == 'L') cx--;
    if (s[i] == 'R') cx++;
  }
  lo = 1;
  hi = 1000000000000000000;
  while (lo <= hi) {
    mid = (lo + hi) / 2;
    px = x1 + (mid / n) * cx;
    py = y1 + (mid / n) * cy;
    for (int i = 0; i < mid % n; i++) {
      if (s[i] == 'U') py++;
      if (s[i] == 'D') py--;
      if (s[i] == 'L') px--;
      if (s[i] == 'R') px++;
    }
    if (abs(x2 - px) + abs(y2 - py) <= mid) {
      r = mid;
      hi = mid - 1;
    } else
      lo = mid + 1;
  }
  cout << r << '\n';
  return 0;
}
