update for poj2438,Hamilton circle