b_list = list(map(int,input().split())) res = None for target in range(1, 11): if b_list.count(target) == 0: res = target break print(res)