read numberOfPlayers:int selfId:int
read height:int width:int
gameloop
read countOfActions:int
loop countOfActions read row:int col:int edge0:word(256) edge1:word(256) edge2:word(256) edge3:word(256) center:int owner:int manEdge:word(256) shield:int links:word(256)
write 0 1 0 -1

INPUT
numberOfPlayers - the number of players from 2 to 4;
selfId - index of current player;
height, width - the size of a game grid
the description of tile in the following format: 
row, col - coordinates of the tile, -1 -1 in case of tile which you would get to place in turn;
edge0 edge1 edge2 edge3 - types of tile edges, "e" - earth, "c" - castle, "r" - road;
center - not used in this league.
owner - player who put a man on this tile, -1 if none.
manEdge - edge the player's worker stays in, -1 if none, else "side+position" for example "0+" or "10", "+" and "-" counts only for road type
shield - 0 or 1 in case if castle have the bonus point from shield;
links - links in the format number of edge + edge type, for example "0c 1c,2r 3r,2- 3+,2+ 3-" where - and + left and right sides of the road looking outwards of the tile;

OUTPUT
row col angle edge_for_man
angle - number of rotations counterclockwise;
manEdge - edge to put man, -1 if none, else "side+position" for example "0+" or "10", "+" and "-" counts only for road type