POJ#1063 math, find the trick for ring(odd/even). Rank:12145