import sequtils,strutils,algorithm var A = stdin.readline.split.map(parseInt) A.sort(cmp) for i, a in A: if i + 1 != a: echo i + 1 break