Every element appears three times except one.