n=int(input())
s1=list(map(int,input().split()))
a10=len([item for item in s1 if item==10])
a20=len([item for item in s1 if item==20])
if a10>a20:
    print("10")
else:
    print("20")




/**************************************************************
	Problem: 1808
	User: admin
	Language: Python
	Result: Accepted
	Time:97 ms
	Memory:34480 kb
****************************************************************/