Every so often the employees of Moloco split into two groups and play a best of five series of League of Overwatch. Some pairs of employees are hardcore gamers who have already played together as a duo, so the company separates each such pair for this event to keep it enjoyable for beginners.
Moloco has n employees, numbered 1 through n.
There are m known pairs (fi,si): employees fi and si played a duo game in the past, so they must end up in different groups.
Decide whether the n employees can be split into two non-empty groups so that every employee belongs to exactly one group and no pair (fi,si) has both of its members in the same group.