count = 0
import itertools
nums = list(range(1,34))
for combination in itertools.combinations(nums, 7):
if sum(combination)==180:
count += 1
print(count)
Y291bnQgPSAwCmltcG9ydCBpdGVydG9vbHMKbnVtcyA9IGxpc3QocmFuZ2UoMSwzNCkpCmZvciBjb21iaW5hdGlvbiBpbiBpdGVydG9vbHMuY29tYmluYXRpb25zKG51bXMsIDcpOgogICAgaWYgc3VtKGNvbWJpbmF0aW9uKT09MTgwOgogICAgICAgIGNvdW50ICs9IDEKcHJpbnQoY291bnQp