Cheating away!#4002

Cheating away!

1 second
128 megabytes
Very easy (≈850)

During the quiz, Professor Floyd noticed that some students exchange notes. Initially he wanted to give them all fail, but that day the professor was kind, and therefore he decided to divide the students into two groups: cheating group and those who give to copy, and give the fail only to the first group.

The professor wrote down all the pairs of students who exchanged notes. Determine will he be able to divide students into two groups so that any exchange of notes is carried out from a student of one group to a student of another group.

Input

First line contains two numbers and - the number of students and the number of student pairs who exchange notes (1 \leq n \leq 100, 0 \leq m \leq n \cdot (n - 1) / 2). Next lines describe the pairs of students: two different numbers corresponding to the numbers of students exchanging notes (the numbering of students starts from ). Each pair of students is listed no more than once.

Output

Print the answer to the Professor Floyd's problem. If you can divide students into two groups, output "**YES**", otherwise output "**NO**".

![prb4002.gif](https://static.e-olymp.com/content/8b/8bac29a58072bfa7710fff96cd23f114ef411bf8.gif)

Examples

Example 1

Loading
Loading