#include <bits/stdc++.h>
using namespace std;
template <class T1, class T2>
istream &operator>>(istream &is, pair<T1, T2> &p) {
  return is >> p.first >> p.second;
}
template <class T1, class T2>
ostream &operator<<(ostream &os, pair<T1, T2> &p) {
  return os << p.first << " " << p.second;
}
string s;
long long sumx = 0, sumy = 0, x, y;
bool check(long long t) {
  long long tx = sumx * (t / s.size()), ty = sumy * (t / s.size());
  for (int i = 0; i < t % s.size(); i++) {
    if (s[i] == 'U')
      ty++;
    else if (s[i] == 'D')
      ty--;
    else if (s[i] == 'L')
      tx--;
    else
      tx++;
  }
  return abs(tx - x) + abs(ty - y) <= t;
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long a, b, c, d;
  cin >> a >> b >> c >> d;
  x = c - a;
  y = d - b;
  int n;
  cin >> n;
  cin >> s;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'U')
      sumy++;
    else if (s[i] == 'D')
      sumy--;
    else if (s[i] == 'L')
      sumx--;
    else
      sumx++;
  }
  long long l = 1, r = 1e18;
  while (l + 1 < r) {
    long long mid = (l + r) >> 1;
    if (check(mid))
      r = mid;
    else
      l = mid;
  }
  if (check(l)) r = l;
  if (check(r))
    cout << r;
  else
    cout << -1;
}
