use built in method to convert binary input to decimal int