Follow the algorithm.
Start with the number $8$8.
If the number is even, halve it. If the number is odd, subtract one and halve it.
key elements of algorithm design: sequencing, decision-making, repetition and representation including the use of pseudocode.