Give binary values to my arduino inputs

Why complicate things by using shift registers when the Mega has 54 digital pins ?