The inputs to the second and third decades come from Q8 of theprevious decade. When Q8in one decade goes from 1 to 0 (10010000), it triggers thecount for the next higher-order decade while its own decade goes from9 to 0. For instance, the count after 399 will be 400