Potato is extremely angry that his fries were eaten! There are three suspects: person 1, person 2, and person 3.
There are two witnesses who are very trustworthy, Patches and PoTheSloth. Patches remembers that person A is not the culprit, while PoTheSloth remembers that person B was not the culrpit.
Determine if the culprit can be uniquely identified based on the memories of the two witnesses. If the culprit can be identified, print the person's number. If not, print -1.
1 ≤ A,B ≤ 3
The input consists two space-separated integers, A and B respectively.
If the culprit can be identified based on the memories of the two witnesses, print the person's number. If not, print -1.
Subtask 1 (100%): No further constraints.
Subtask 2 (0%): Sample Testcases
1 2
3
1 1
-1
3 1
2
Subtask | Score |
---|---|
1 | 100 |
2 | 0 |