5-7-12 from outer loop