B=list(map(int,input().split())) for x in range(1,11): if x not in B:print(x)