const input = require('fs').readFileSync('/dev/stdin', 'utf8'); const [[n, a], x] = input.split('\n').map(v => v.split(/\s/).map(v => Number(v))); const ans = x.reduce((a, b) => a + b)/x.length == a ? 'YES' : 'NO'; console.log(ans);