You are at a summer training camp for programming contests. The camp is held in a lodging facility called the Tokyo Olympics Center, and today is the last day. You are the one ordered to check whether every participant cleaned their room properly.
The facility is a rectangular field of height H and width W, divided into square cells. Rows are numbered 1 through H from top to bottom, and columns are numbered 1 through W from left to right. The cell in row i and column j is written (i,j). Two cells are adjacent if they share an edge.
Every cell is either a wall cell or a floor cell. Nobody can enter a wall cell. Floor cells are the inside of the facility, and anyone can move between two adjacent floor cells. The floor cells are divided into units, and each unit has one uppercase letter as its name (A, B, C, ...). A floor cell that is adjacent to exactly one floor cell is a room. Every other floor cell is an aisle.
The figure below shows one facility. A wall cell is written as a single period.
...................
.....AAABBBBBBB....
...A.AA.A...B.B..B.
..AAAAAAAABBBBBBBB.
...A..A.A.....B....
......A.......BBBB.
....A.AA..C.C...B..
...AAAAACCCCCCBBBB.
...A..A...C.C...B..
...................
In this figure, unit A has 7 rooms, unit B has 4 rooms, and unit C has 4 rooms.
The facility is too large to walk alone, so you asked the other camp participants to check the rooms. Call them staffs. K staffs stand on the cell (s,t), and the check runs as follows.
All staffs leave at the same moment and move in parallel, so the time of the task is the largest time spent by a single staff. You have to start the next contest soon, so make that time as small as possible.
The first line contains three integers H, W and K (1≤H≤50, 1≤W≤50, 1≤K≤12). The second line contains four integers s, t, Tmove and Tcheck (1≤s≤H, 1≤t≤W, 1≤Tmove,Tcheck≤10000).
Each of the following H lines contains exactly W characters describing the cells of the facility. The j-th character in the i-th of these lines is a single period if the cell (i,j) is a wall cell. Otherwise it is an uppercase letter from A to L, the unit that the cell (i,j) belongs to.
The input satisfies all of the following conditions.
Print the minimum time required to check all the rooms in one line.