#C7304. Alex's Break Checker

    ID: 51161 Type: Default 1000ms 256MiB

Alex's Break Checker

Alex's Break Checker

Alex is an avid gamer who often forgets to take breaks while playing. His coach has set a threshold of M minutes to indicate when a break is necessary. For each session, if the total playtime y satisfies the inequality \( y \ge M \), then Alex should take a break. Otherwise, he can continue playing.

Given the number of sessions and the corresponding playtimes, determine for each session whether or not Alex needs a break.

inputFormat

The input is provided via standard input.

  • The first line contains two integers \(T\) and \(M\) where \(T\) is the number of sessions, and \(M\) is the threshold in minutes.
  • The second line contains \(T\) integers, where the \(i\)-th integer represents the total minutes played in the \(i\)-th session.

outputFormat

For each session, output a line containing YES if the playtime is greater than or equal to \(M\) minutes, otherwise output NO.

## sample
3 180
180 120 200
YES

NO YES

</p>