#include <bits/stdc++.h>
using namespace std;
long long dist(long long x1, long long y1228, long long x2, long long y2) {
  return abs(x1 - x2) + abs(y1228 - y2);
}
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long n, x1, y1228, x2, y2;
  cin >> x1 >> y1228 >> x2 >> y2 >> n;
  string s;
  cin >> s;
  s = '#' + s;
  vector<pair<long long, long long>> a(n + 1);
  for (long long i = 1; i <= n; i++) {
    if (s[i] == 'U') a[i] = {0, 1};
    if (s[i] == 'D') a[i] = {0, -1};
    if (s[i] == 'L') a[i] = {-1, 0};
    if (s[i] == 'R') a[i] = {1, 0};
    a[i].first += a[i - 1].first;
    a[i].second += a[i - 1].second;
  }
  long long l = 0, r = 2e18;
  while (l < r) {
    long long m = l + (r - l) / 2;
    pair<long long, long long> s = {x1, y1228};
    s.first += a.back().first * (m / n);
    s.first += a[m % n].first;
    s.second += a.back().second * (m / n);
    s.second += a[m % n].second;
    if (dist(s.first, s.second, x2, y2) > m)
      l = m + 1;
    else
      r = m;
  }
  pair<long long, long long> sum = {x1, y1228};
  sum.first += a.back().first * (l / n);
  sum.first += a[l % n].first;
  sum.second += a.back().second * (l / n);
  sum.second += a[l % n].second;
  if (dist(sum.first, sum.second, x2, y2) > l)
    cout << "-1\n";
  else
    cout << l << "\n";
  return 0;
}
