b=list(map(int,input().split())) print([i for i in range(1,11)if i not in b][0])