#include <bits/stdc++.h>
using namespace std;
long long int a, b, c, d, n;
long long int fulxd = 0, fulyd = 0;
const long long int ss = 1e15;
string s;
void fuld() {
  fulxd = 0, fulyd = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'R')
      fulxd++;
    else if (s[i] == 'L')
      fulxd--;
    else if (s[i] == 'U')
      fulyd++;
    else if (s[i] == 'D')
      fulyd--;
  }
  return;
}
long long int check(long long int days) {
  long long int x = a, y = b;
  long long int temp = days / n;
  x = a + fulxd * temp;
  y = b + fulyd * temp;
  long long int rem = days - temp * n;
  for (long long int i = 0; i < rem; i++) {
    if (s[i] == 'R')
      x++;
    else if (s[i] == 'L')
      x--;
    else if (s[i] == 'U')
      y++;
    else if (s[i] == 'D')
      y--;
  }
  long long int r = abs(x - c) + abs(y - d);
  return (r <= days);
}
signed main() {
  cin >> a >> b >> c >> d;
  cin >> n;
  cin >> s;
  fuld();
  bool done = 0;
  long long int lo = 1, hi = ss, ans = -1;
  long long int pre = -1;
  while (lo <= hi) {
    long long int mi = (lo + hi) / 2;
    if (check(mi)) {
      ans = mi;
      hi = mi - 1;
    } else {
      lo = mi + 1;
    }
  }
  cout << ans << endl;
  return 0;
}
