Replace hamming inputs/outputs