LogiQuest

448. Kids With the Greatest Number of Candies

EasyArray

For each kid, print true if giving them all the extra candies would make their count at least the maximum among all kids, else false.

Input format

Line 1: n extra Line 2: n candy counts

Output format

n words: true or false.

Example 1

Input

5 3
2 3 5 1 3

Output

true true true false true

Example 2

Input

5 1
4 2 1 1 2

Output

true false false false false

Constraints

1 ≤ n ≤ 100

Read input from standard input and print the answer to standard output. Your code is judged against 3 test cases, most of them hidden.

Loading the MyLoginn IDE…