with open('input.txt', 'r') as f:
nums = f.read().splitlines()
n=int(nums[0])
rows=nums[1:]
missed=''
for r in rows:
missed= list(filter(lambda x: str(x) not in r.split(' '), range(1, n+1)))
print(' '.join(map(str, missed)))