
Fax McClad, Croneria's most disruptively innovative bounty hunter, plans to use artificial intelligence in order to track down the Dankey Kang Gang.
But, Fax doesn't know much about the artificial intelligence field, so he decides to hire somebody to do it for him. Luckily, you have been selected for an interview!
Advanced artificial intelligence algorithms require a good understanding of linear algebra, so in your interview, Fax asks you some linear algebra questions.
We say that a function
Given
Input Specification
The first line of input will contain
For
Output Specification
Output yes
if no
if it is definitely not.
Sample Input 1
2
1 2
2 4
Sample Output 1
yes
Sample Input 2
3
1 2
2 1
3 5
Sample Output 2
no
Comments