LCC '21 Contest 3 J1 - Sly Students

View as PDF

Submit solution

Points: 3
Time limit: 3.0s
Memory limit: 64M

Author:
Problem type

As one of the top CCC (Canadian Chemistry Competition) competitors, Nruce Ban has been teaching a class of the nation's 3 most cunning students. However, he has run into a major problem! As he was preparing the students' report cards, he realized that he had accidentally thrown out the sheet containing their marks. Thus, he doesn't know which student had which mark. Of course, being a top competitor in the CCC, Nruce Ban came up with the ingenious idea to ask his students what their marks were. Obviously, some students may lie, but Nruce Ban remembers all 3 midterm marks and all 3 final marks (though he doesn't know who scored what). Hence, if a student says that they have a midterm or final mark that Nruce Ban doesn't remember, he knows that student is lying. Nruce Ban told you the midterm and final marks he remembers, and a student told you their midterm and final mark. Can you check to see if the student is lying?

Input Specification

The first line will have 3 nonnegative integers no greater than 100: the 3 midterm marks Nruce Ban remembers

The second line will have 3 nonnegative integers no greater than 100: the 3 final marks Nruce Ban remembers

The third line will have 2 nonnegative integers no greater than 100: the midterm mark the student said they had followed by the final mark the student said they had.

Output Specification

If the midterm mark the student claimed to have is one of the 3 midterm marks Nruce Ban remembers and the final mark the student claimed to have is one of the 3 final marks Nruce Ban remembers, then print out Probably Trustworthy. Otherwise, print out F For Honesty

Sample Input

12 0 33
100 80 93
33 100

Sample Output

Probably Trustworthy

Comments

There are no comments at the moment.