#include<stdio.h>
int main()
{
int x0, y0;
int x1, y1;
int t = 0;
scanf("%d %d", &x0, &y0);
getchar();
scanf("%d %d", &x1, &y1);
getchar();
scanf("%d", &t);
getchar();
int gapx = x1 - x0;
int gapy = y1 - y0;
int e = 0;
int s = 0;
int w = 0;
int n = 0;
int i = 0;
for (i = 0; i < t; i++)
{
char temp = 0;
scanf("%c", &temp);
getchar();
if (temp == 'E')
{
e++;
}
if (temp == 'N')
{
n++;
}
if (temp == 'S')
{
s--;
}
if (temp == 'W')
{
w--;
}
}
if (gapx > e || gapx<w || gapy>n || gapy < s)
{
printf("-1");
}
else
{
printf("%d", abs(gapx) + abs(gapy));
}
return 0;
}