from collections import NAME_1
import csv 
from collections import defaultdict

list1 = [3, 10, 22, 66, 66, 19, 5, 11, 41, 44, 55, 14, 15, 34, 36, 69, 70, 17, 1, 2, 23, 40, 45, 15, 4, 37, 46, 48, 51, 19, 16, 18, 28, 42, 43, 11, 3, 15, 16, 32, 41, 9, 18, 38, 53, 62, 64, 20,8, 29, 46, 47, 48, 12,]
list2 = [14, 16, 40, 52, 59, 13, 2, 22, 49, 65, 67, 7, 23, 24, 35, 40, 43, 1, 2, 33, 38, 57, 70, 13, 23, 24, 35, 40, 43, 1, 20, 29, 30, 52, 58, 19, 9, 15, 46, 55, 57, 4, 1, 40, 50, 54, 59, 18, 7, 9, 18, 29, 39, 13, 20, 29, 31, 64, 66, 17, 33, 41, 47, 50, 62, 20, 20, 29, 31, 64, 66, 17, 2, 12, 18, 24, 39, 18, ]


list1 = list1
list2 = list2

SemiFinal = []  # create an empty list for Semi Finals
Chosen = [sub_elimination + semi_final]     # create an empty list for chosen elements

for i in range(66):
    if (list1 not in SemiFinal):
       SemiFinal.append(tuple(list1))
    if (list2 not in SemiFinal):
       SemiFinal.append(tuple(list2))
#Alternatively, you can use the extend method to add all the elements of the list at once:
# SemiFinal.extend(list1)
# SemiFinal.extend(list2)

# Remove duplicates from the SemiFinal list
SemiFinal = list(set(SemiFinal))


# Combine the first 66 elements of list1 and list2
combined = list1[:60] + list2[:60]

#Remove duplicates from the combined list
combined = list(set(combined))

# Create the SemiFinal list
SemiFinal = [list1, list2]



data =[15, 34, 36, 69, 70, 17, 4, 37, 46, 48, 51, 19,  ]
listXN = [8, 25, 36, 39, 67, 11, 2, 22, 49, 65, 67, 7, ] 
