Back
Close

Contribution Revenge Sockpuppet

Statement

 Goal

You've just submitted a great clash of code contribution. All you have to do now is wait for it to be approved. Oh noes! Your Arch Nemesis just rejected it for no good reason! Now the other reviewers are going to be biased, assuming they're not sockpuppets of His…

You are given a clash of code contribution. You must determine whether to approve or reject it, depending on whose side of the drama you pick.

The rules to review are:
* if the submission was authored by a friend of yours, you accept.
* if the submission was authored by a foe of yours, you reject.
* if neither, you flip a coin. The coin says to accept if and only if the contribution title's sum of characters, interpreted as ASCII, is the same as the sum of characters of “Contribution Revenge Sockpuppet”, interpreted as ASCII. Modulo 128.
Input
Line 1: The contribution's title
Line 2: The contribution's author
Line 3: L your number of friends and H your number of foes, space-separated
Next L lines: your friends' names
Next H lines: your foes' names
Output
ACCEPT or REJECT
Constraints
Users' names are ASCII.
The friends and foes lists have no user in common.
Example
Input
Great puzzle
Westicals
3 3
anon98600621
CoderQueen
Westicals
Sock666
CaptainLoop
InnocentPasserby
Output
ACCEPT

Game modes
Fastest, Shortest

Test cases
Friend Test
Input
Great puzzle Westicals 3 3 anon98600621 CoderQueen Westicals Sock666 CaptainLoop InnocentPasserby
Output
ACCEPT

Friend Validator
Input
Greater puzzle Easticles 3 3 98600621anon CoderKing Easticles Sock667 CaptainLoop GuiltyPasserby
Output
ACCEPT

Foe Test
Input
Great puzzle CaptainLoop 3 3 anon98600621 CoderQueen Westicals Sock666 CaptainLoop InnocentPasserby
Output
REJECT

Foe Validator
Input
Greater puzzle VelpeauHospital 3 3 98600621anon CoderKing Easticles Sock667 VelpeauHospital GuiltyPasserby
Output
REJECT

Cool puzzle bro Test
Input
Best puzzle 0101 Anonymous CodinGamer 3 3 anon98600621 CoderQueen Westicals Sock666 CaptainLoop InnocentPasserby
Output
ACCEPT

Cool puzzle bro Validator
Input
Bester puzzle 47 Anonymous CodinGamer 3 3 98600621anon CoderKing Easticles Sock667 VelpeauHospital GuiltyPasserby
Output
ACCEPT

Lame puzzle bruh Test
Input
Best puzzle 6 Anonymous CodinGamer 3 3 anon98600621 CoderQueen Westicals Sock666 CaptainLoop InnocentPasserby
Output
REJECT

Lame puzzle bruh Validator
Input
Bester puyyle B Anonymous CodinGamer 3 3 98600621anon CoderKing Easticles Sock667 VelpeauHospital GuiltyPasserby
Output
REJECT

Solution language

Solution

Stub generator input