#include <bits/stdc++.h>
using namespace std;
const int N = 100009;
pair<int, int> st, fi;
int n;
string s;
string mv = "UDLR";
int dx[] = {0, 0, -1, 1};
int dy[] = {1, -1, 0, 0};
pair<int, int> d[N];
int main() {
  cin >> st.first >> st.second >> fi.first >> fi.second;
  cin >> n >> s;
  for (int i = 0; i < n; ++i) {
    int id = -1;
    for (int j = 0; j < 4; ++j)
      if (mv[j] == s[i]) id = j;
    assert(id != -1);
    d[i + 1] = make_pair(d[i].first + dx[id], d[i].second + dy[id]);
  }
  long long l = 0, r = 1e18;
  while (r - l > 1) {
    long long mid = (l + r) / 2;
    long long cnt = mid / n, rem = mid % n;
    long long first = st.first + d[rem].first + cnt * 1LL * d[n].first;
    long long second = st.second + d[rem].second + cnt * 1LL * d[n].second;
    long long dist = abs(first - fi.first) + abs(second - fi.second);
    if (dist <= mid)
      r = mid;
    else
      l = mid;
  }
  if (r > 5e17) r = -1;
  cout << r << endl;
  return 0;
}
