#include <bits/stdc++.h>
using namespace std;
const long long int N = 1e6 + 5, inf = 1e15 + 7;
pair<long long int, long long int> P[N];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int x1, y1, x2, y2;
  cin >> x1 >> y1 >> x2 >> y2;
  int n;
  cin >> n;
  string s;
  cin >> s;
  for (int i = 0; i < n; i++) {
    P[i + 1] = P[i];
    if (s[i] == 'U') P[i + 1].second++;
    if (s[i] == 'D') P[i + 1].second--;
    if (s[i] == 'L') P[i + 1].first--;
    if (s[i] == 'R') P[i + 1].first++;
  }
  long long int lo = 1, hi = inf, mid, res = -1;
  while (lo <= hi) {
    mid = (lo + hi) >> 1;
    long long int x = x1 + P[n].first * (mid / n) + P[mid % n].first,
                  y = y1 + P[n].second * (mid / n) + P[mid % n].second;
    if (abs(x - x2) + abs(y - y2) > mid)
      lo = mid + 1;
    else
      hi = mid - 1, res = mid;
  }
  cout << res << "\n";
  return 0;
}
