SP2139 GOSSIPER - Gossipers
Description
Doulnee Keltchow is a small town in the middle of nowhere; what makes it so famous is the number of gossipers who live there. Every morning, each gossiper finds out a new gossip, a gossip so unique that nobody else in the town knows it. The gossipers talk, gossip and exchange rumors all day long. What happens when two gossipers meet? Of course, they exchange all the gossips they have heard so far. Your task is to determine whether every gossiper will know all the gossips by the end of the day.
Input Format
The input file consists of multiple test cases separated by blank lines. On the first line of every test case there are two positive integers N (1
Output Format
The output file should contain for each test case one line containing a single word "YES" if every gossiper knows all the gossips, or "NO", otherwise.
Explanation/Hint
$1≤a≤2100,1≤b≤12000$