#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 5;
int x, y, _x, _y, n, tx, ty;
string s;
bool judge(long long num) {
  long long yu = num % n;
  long long ax = (num / n) * tx;
  long long ay = (num / n) * ty;
  long long px = x + ax;
  long long py = y + ay;
  for (int i = 0; i < yu; i++) {
    if (s[i] == 'U')
      py++;
    else if (s[i] == 'D')
      py--;
    else if (s[i] == 'L')
      px--;
    else
      px++;
  }
  long long sum = 1ll * abs(px - 1ll * _x) + 1ll * abs(py - 1ll * _y);
  return num >= sum;
}
int main() {
  cin >> x >> y >> _x >> _y;
  cin >> n >> s;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'U')
      ty++;
    else if (s[i] == 'D')
      ty--;
    else if (s[i] == 'L')
      tx--;
    else
      tx++;
  }
  long long l = 1, r = 1e18;
  while (l <= r) {
    long long m = l + r >> 1;
    if (judge(m)) {
      r = m - 1;
    } else
      l = m + 1;
  }
  if (r >= 1e18)
    cout << -1 << endl;
  else
    cout << l << endl;
}
