# class auto:
#     moc = ""
#     naped = ""
#     predkosc = ""
#     def aktualna_predkosc(self, przyspieszenie):
#         return self.predkosc * przyspieszenie
    
# opel = auto()
# opel.moc = "8000 koni"
# opel.naped = "4x4"
# opel.predkosc = 200

# # Można to zrobic konstruktorem

# class auto2:
    
#     def __init__(self,moc,naped,predkosc):
#         self.moc = moc
#         self.naped = naped
#         self.predksc = predkosc

# audi = auto2(200,100,69)

# class mikstura:
#     efekt = "brak"
#     czas_trwania = "0"
#     moc_efektu = "0"
#     def __init__(self,efekt=efekt,czas=czas_trwania,moc=moc_efektu):
#         self.efekt = efekt
#         self.czas_trwania = czas
#         self.moc_efektu = moc
#     def wypisz(self):
#         print(self.efekt, self.czas_trwania, self.moc_efektu)

# Potka_leczenia = mikstura("leczenie","3min",2)
# Potka_leczenia.wypisz()
# Wielka_Potka_trcizny = mikstura("Trucizna","10H",1)
# Wielka_Potka_trcizny.wypisz()
# Silna_Potka_Sily = mikstura("Sila","90s",10)
# Silna_Potka_Sily.wypisz()
# Silna_Silna_Silna_Silna_Silna_Potka_Wysokiego_Skoku = mikstura("Wysoki skok","5s",999)
# Silna_Silna_Silna_Silna_Silna_Potka_Wysokiego_Skoku.wypisz()
# Pusta_potka = mikstura()
# Pusta_potka.wypisz()
# dane_mikstuy = ["latanie", 60, 5]
# Pota_wlasna = mikstura(dane_mikstuy[0],dane_mikstuy[1],dane_mikstuy[2])
# Pota_wlasna.wypisz()

import random
def captains_room(tab):
    curent_row = 0
    captain = False
    for i in tab:
        captain = True
        for ii in range(len(tab)):
            if ii == curent_row:
                pass
            elif (i == tab[ii]):
                captain = False
                break
        if captain == True:
            return i
        curent_row +=1
    return "brak"



K =100000
lista = []
for i in range(K):
    lista.append(random.randint(1,100000))
print(lista)
print(captains_room(lista))
