a = 2
smth = []
for x in xrange(10):
    if x != 2:
        if x != 5:
            for y in xrange(12):
                if y != 1:
                    if y != 4:
                        for z in xrange(14):
                            if z != 3:
                                if z != 8:
                                    smth.append(x + y + z)

a = 5