Describe the procedure for decoding a word using syndromes.