#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
const int inf = 0x3c3c3c3c;
const long long infl = 0x3c3c3c3c3c3c3c3c;
const int MAX_N = 2e5 + 9;
const ll MAX_R = 2 * 1e15 + 9;
int a[MAX_N];
int px[MAX_N], py[MAX_N];
int main() {
  cin.tie(NULL);
  cin.sync_with_stdio(false);
  cout.sync_with_stdio(false);
  ll sx, sy;
  ll dx, dy;
  cin >> sx >> sy;
  cin >> dx >> dy;
  int n;
  cin >> n;
  string s;
  cin >> s;
  for (int i = 0; i < n; i++)
    px[i + 1] = (s[i] == 'R' ? 1 : 0) + (s[i] == 'L' ? -1 : 0) + px[i];
  for (int i = 0; i < n; i++)
    py[i + 1] = (s[i] == 'U' ? 1 : 0) + (s[i] == 'D' ? -1 : 0) + py[i];
  ll l = 0, r = MAX_R;
  while (l + 1 < r) {
    ll m = (l + r) / 2;
    ll cx = 1LL * (m / n) * px[n] + px[m % n];
    ll cy = 1LL * (m / n) * py[n] + py[m % n];
    ll v = abs(dx - (sx + cx)) + abs(dy - (sy + cy));
    if (v <= m)
      r = m;
    else
      l = m;
  }
  if (r == MAX_R) return !printf("-1");
  printf("%lld", r);
}
