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