a0q=a1b1=a2b2==as-1bs-1.