import intsets, math, sequtils, strutils var _ = readLine stdin a = stdin.readLine.split.map parseInt echo sum toSeq a.toIntSet - toIntSet a.mapIt succ it