V nuggets = Set(0..100) L(s, n, t) cart_product(0 .. 100 I/ 6, 0 .. 100 I/ 9, 0 .. 100 I/ 20) nuggets.discard(6*s + 9*n + 20*t) print(max(nuggets))