STATEMENT
Control your elemental tribe and capture more enemies than your opponents to win the battlefield!

read myTribe:word(1)
read mapSize:int
loop mapSize read row:word(mapSize)
gameloop
read scoreW:int scoreF:int scoreP:int
read elementalsCount:int
loop elementalsCount read elementalId:int tribe:word(1) x:int y:int prisoner:int
write 0 WAIT

INPUT
myTribe: Your player tribe ("W", "F" or "P").
mapSize: Size of the game map.
row: One line of the map composed of ".", "#", "W", "F" or "P".
scoreW: Current score of Water tribe.
scoreF: Current score of Fire tribe.
scoreP: Current score of Plant tribe.
elementalsCount: Total number of elementals in the game.
elementalId: Unique identifier of this elemental within its tribe.
tribe: Tribe of this elemental ("W", "F" or "P").
x: X coordinate, 0 is the left edge.
y: Y coordinate, 0 is the top edge.
prisoner: 1 if this elemental is prisoner, 0 otherwise.

OUTPUT
<elementalId> MOVE <x> <y> ; <elementalId> WAIT
