#include <bits/stdc++.h>
using namespace std;
namespace Tzh {
const int maxn = 100010;
long long n, xx[maxn], yy[maxn], x, y, a, b;
string s;
bool pan(long long now) {
  long long nx = x, ny = y;
  nx += xx[n] * (now / n), ny += yy[n] * (now / n);
  nx += xx[now % n], ny += yy[now % n];
  if (abs(nx - a) + abs(ny - b) <= now) return 1;
  return 0;
}
void work() {
  cin >> x >> y >> a >> b;
  cin >> n;
  cin >> s;
  long long dx = 0, dy = 0;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'U')
      dy++;
    else if (s[i] == 'D')
      dy--;
    else if (s[i] == 'R')
      dx++;
    else
      dx--;
    xx[i + 1] = dx, yy[i + 1] = dy;
  }
  long long lt = 0, rt = 1e15;
  long long ans = -1;
  while (lt <= rt) {
    long long mid = lt + rt >> 1;
    if (pan(mid))
      rt = mid - 1, ans = mid;
    else
      lt = mid + 1;
  }
  cout << ans;
  return;
}
}  // namespace Tzh
int main() {
  ios::sync_with_stdio(false);
  Tzh::work();
  return 0;
}
