import strutils, sequtils, stats let na, x = stdin.readLine.split.map parseInt ["YES", "NO"][int(x.mean != na[1].float)].echo