m = int(input())
lis = list(map(int,input().split()))
lis.sort()
n= []
for i in range(len(lis)-1):
if lis[i]==lis[i+1]:
n.append(lis[i])
if n:
for x in set(n):
print( x, end=" ")
else 
print('unique')

651c8c7afa7342e3e0e29f9f89cdaaec4b430f34
m = int(input())
lis = list(map(int,input().split()))
lis.sort()
n= []
for i in range(len(lis)-1):
if lis[i]==lis[i+1]:
n.append(lis[i])
if n:
for x in set(n):
print( x, end=" ")
else 
print('unique')
