1 2 3 4
int mac_count_flower = c/a; int b_count = mac_count_flower; while(b_count*b>c) b_count--; int a_count=mac_count_flower-b_count;