Accepts binary input and returns actions based on the tens units.