import strutils, sequtils let tmp = stdin.readLine.split tu = tmp[1 .. 2].map parseInt var S = tmp[0] for i, v in tu: if tu[0] != tu[1] or i == 0: S.delete(v, v) echo S