import sequtils, strutils let t = stdin.readLine.split.map parseInt for i, ti in t: if i+1 != ti: echo i+1 break