Squirrel Scrat has grown old and wise. Instead of chasing after just one nut, he now wants to collect a collection of different types of nuts. There are a total of 26 different types of nuts, labeled with the symbols from 'a' to 'z'. The ideal collection that Scrat aims to gather is described by the string , where the -th character indicates the type of the -th nut in the collection.
The continent Scrat is on can be thought of as a rectangular field of size n \times m. Rows of the field are numbered from to from top to bottom, and columns from to from left to right. The cell is the intersection of row and column . Initially, Scrat is located in the cell (x_0, y_0). In the cell with coordinates , you can find only nuts of type a_{i, j}, but in infinite quantity. The terrain is arranged so that movement is only possible between adjacent cells sharing a side, and each move takes exactly one unit of time.
Scrat is very principled, so he will collect the nuts exactly in the order given by the string (in other words, if s = \text{"ab"}, it is not allowed to pick up a nut of type 'b' first and then a nut of type 'a'). Help him determine the minimum time in which he can collect the entire collection. No time is spent picking up a nut in the cell where Scrat currently is.
The first line contains two integers and (1 \leq n, m \leq 300)---the dimensions of the continent. The second line contains two integers x_0 and y_0 (1 \leq x_0 \leq n, 1 \leq y_0 \leq m)---the coordinates of the cell where Scrat starts.
Each of the next lines contains exactly lowercase English letters. In the -th of these lines, the -th character specifies a_{i, j}, the type of nut that grows in cell of the continent. It is guaranteed that every type of nut is present in at least one cell of the continent.
The next line contains a string (1 \leq |s| \leq 300) of lowercase English letters describing the sequence of nuts in the ideal collection.
Print the minimum time Scrat needs to collect his entire collection.
Example 1
Example 2
Explanation for Sample 1:The optimal route is to reach 'n' in the first row in steps, then go down by and add 'u' and 't', standing consecutively to the right; this requires more steps.
Explanation for Sample 2:The optimal route corresponds to the points , then 's' at , 'q' at , 'u' at , 'i' at , 'r' at (twice), 'e' at , and 'l' at .