SP10112 REVIEW - Peer Review
Description
For scientific conferences, scientists submit papers presenting their ideas, and then review each other’s papers to make sure only good papers are presented at the conference. Each paper must be reviewed by at least one scientist, and scientists must not review papers written by people they collaborate with (including themselves), or review the same paper more than once.
You have been asked to write a program to check if your favorite conference is doing things right. Whether a paper is being reviewed too much, too little, or by the wrong people - the organizers must know before it is too late!
**Input**
The first line in each test case has two integers, _K_ (1 K N (1 N K is the number of reviews that each paper will receive, while _N_ is the number of papers to be reviewed. The conference only accepts papers with a single author, and authors can only present a single paper at the conference.
Each of the next _N_ lines describes an author and includes the name of the institution to which the author belongs, followed by the list of the _K_ papers he or she has been requested to review. It is assumed that researchers from the same institution collaborate with each other, whereas researchers from different institutions don’t. All institution names are shorter than 10 characters, and contain only upper or lowercase letters and no whitespace. Since we have as many papers as authors, papers are identified by their author’s index; paper 1 was written by the first author in the list, and paper _N_ was written by the last author.
The end of the test cases is marked with a line containing _K_=0 and _N_=0. You should generate no output for this line.
**Output**
For each test case, your program should output NO PROBLEMS FOUND (if all rules are being followed) or _P_ PROBLEMS FOUND, where _P_ is the number of rule violations found (counting at most 1 violation per paper). If there is exactly one rule violation overall, your program should output 1 PROBLEM FOUND.
**Sample Input**
```
2 3
UCM 2 3
UAM 1 3
UPM 1 2
2 3
UCM 2 3
UAM 1 2
UPM 2 2
0 0
```
**Sample Output**
```
NO PROBLEMS FOUND
3 PROBLEMS FOUND
```
- - - - - -
> _Problemsetter: Manuel Freire_
Input Format
N/A
Output Format
N/A