import sequtils, strutils
var b: seq[int] = stdin.readline.split.map(parseInt)
for i in 1..10:
  if find(b, i) == -1:
    echo i