The Captain's Room

  • + 0 comments
    from collections import defaultdict
    
    dd = defaultdict(int)
    mem = int(input())
    ll = list(map(int,input().split()))
    for v in ll:
        if v in dd.keys():
            dd[v]=dd[v]+1
        else:
            dd[v]=1
    
    for k,v in dd.items():
        if v==1:
            print(k)