import strutils, sequtils, sets let B = stdin.readLine.split.map parseInt echo toSeq(1 .. 10).toSet - B.toSet