poj 2081. Hash, bit operation.