#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
const string S = "UDLR";
const int dx[] = {0, 0, -1, 1};
const int dy[] = {1, -1, 0, 0};
const long long INF = 1e18;
pair<long long, long long> pos[N];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long x, y, u, v;
  int n;
  string s;
  cin >> x >> y >> u >> v;
  cin >> n;
  cin >> s;
  s = " " + s;
  if (x == u && y == v) {
    cout << 0;
    return 0;
  }
  for (int i = 1; i <= n; i++) {
    int id;
    for (int j = 0; j < 4; j++) {
      if (S[j] == s[i]) {
        id = j;
        break;
      }
    }
    pos[i] = pair<long long, long long>(pos[i - 1].first + dx[id],
                                        pos[i - 1].second + dy[id]);
  }
  long long res = INF;
  long long l = 1;
  long long r = INF;
  while (l <= r) {
    long long mid = (l + r) >> 1;
    long long t = mid / n;
    long long remain = mid % n;
    long long a = x + pos[remain].first + pos[n].first * t;
    long long b = y + pos[remain].second + pos[n].second * t;
    long long dist = abs(a - u) + abs(b - v);
    if (dist <= mid) {
      res = mid;
      r = mid - 1;
    } else {
      l = mid + 1;
    }
  }
  if (res == INF) {
    cout << -1;
  } else {
    cout << res;
  }
  return 0;
}
