nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
filterednum = []
for num in nums:
    if num < 3 or num > 12 and num:
        filterednum.append(num)
print(filterednum)