[POJ 2287] Tian Ji — The Horse Racing [Java]