Problem
The final exam in your psychology class is 30 multiple-choice questions. Your instructor says that if you write the program to grade the finals, you won't have to take it.
Input
The first data line contains the key to the exam. The correct answers are the first 30 characters; they are followed by an integer number that says how many students took the exam (call it N). The next N lines contain student answers in the first 30 character positions followed by the student's name in the next 10 character positions.
Output
For each student-the student's name; followed by the number of correct answers; followed by PASS if the number correct is 60 percent or better, or FAIL otherwise.