sensation sensation twodimensional kingdom the police catch highly dangerous outlaw member notorious Pihters gang the law department state outlaw drive gang headquarters car crash ice cream stall the stall car headquarters occupy exactly point twodimensional kingdomthe outlaws car equip GPS transmitter the transmitter show car exactly n movement way headquarters stall a movement car point xy point point x1y mark letter L point x1y r point xy1 d point xy1 uthe GPS transmitter inaccurate do not preserve exact sequence car movement instead keep record car possible movement each record string type UL UR DL DR ULDR each string mean car single movement corresponding character stre for example string UL mean car move U LYouve receive journal outlaw possible movement headquarters stall the journal record give chronological order give icecream stall locate point 00 task print number different point contain gang headquarters number different possible location car origin