1 2 3 4 5 6
n = 0 for i in range(-80, 61): for j in range(-60, 41): if 2*i >= 3*j and 3*i >= 4*j and 5*i - 7*j <= 20: n += 1 print(n)