# coding: utf-8 # Your code here! arr = [int(x) for x in input().split()] for i in range(1,11): if i not in arr: print(i) exit()