#include <bits/stdc++.h>
using namespace std;
pair<int, int> st, fi;
int dx[] = {0, 1, 0, -1};
int dy[] = {1, 0, -1, 0};
pair<int, int> d[200007];
int main() {
  int x, y, n;
  string s;
  cin >> x >> y;
  st.first = x;
  st.second = y;
  cin >> x >> y;
  fi.first = x;
  fi.second = y;
  cin >> n >> s;
  string mv = "URDL";
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < 4; j++) {
      if (s[i] == mv[j]) {
        d[i + 1] = make_pair(d[i].first + dx[j], d[i].second + dy[j]);
        break;
      }
    }
  }
  long long l = 0, r = 1e18;
  while (r - l > 1) {
    long long int mid = (l + r) / 2;
    long long int c = mid / n;
    long long int rem = mid % n;
    long long x = st.first + d[rem].first + c * 1ll * d[n].first;
    long long y = st.second + d[rem].second + c * 1ll * d[n].second;
    long long dist = abs(x - fi.first) + abs(y - fi.second);
    if (dist <= mid) {
      r = mid;
    }
    if (dist > mid) {
      l = mid;
    }
  }
  if (r > 5e17) r = -1;
  cout << r << endl;
  return 0;
}
