#include <bits/stdc++.h>
using namespace std;
long long x[100005], y[100005];
long long x1, yy, x2, y2, n, req_y, req_x;
string str;
bool check(long long val) {
  long long num = val;
  long long curr_x, curr_y;
  curr_x = x[n] * (val / n);
  curr_y = y[n] * (val / n);
  val %= n;
  curr_x += x[val];
  curr_y += y[val];
  if (abs(curr_x - req_x) + abs(curr_y - req_y) <= num) return true;
  return false;
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> x1 >> yy >> x2 >> y2 >> n >> str;
  x[0] = 0;
  y[0] = 0;
  for (long long i = 0; i < n; i++) {
    if (str[i] == 'R') {
      x[i + 1] = x[i] + 1;
      y[i + 1] = y[i];
    } else if (str[i] == 'L') {
      x[i + 1] = x[i] - 1;
      y[i + 1] = y[i];
    } else if (str[i] == 'U') {
      x[i + 1] = x[i];
      y[i + 1] = y[i] + 1;
    } else {
      x[i + 1] = x[i];
      y[i + 1] = y[i] - 1;
    }
  }
  req_x = x2 - x1;
  req_y = y2 - yy;
  long long low = 0, high = 1000000000000000000, mid, ans = -1;
  while (low <= high) {
    mid = (low + high) / 2;
    if (check(mid)) {
      ans = mid;
      high = mid - 1;
    } else
      low = mid + 1;
  }
  cout << ans;
  return 0;
}
