import sys

numbers = []
for line in sys.stdin:
    numbers.append([int(s) for s in line.split()])

max =[]  
for i in range(1, numbers[0] + 1):
    for number in numbers:
        if(number != i):
            max.append(i)
            
    print(max)
    max.clear()