poj2140. number theory. nice~