A triple of numbers is said to be poor when two of those numbers are equal but the other…
- User
A triple of numbers is said to be poor when two of those numbers are equal but the other number is different from those two numbers.
You will be given three integers A, B, and C. If this triple is poor, print
Yes; otherwise, printNo.Constraints
- A, B, and C are all integers between 1 and 9 (inclusive). Input
Input is given from Standard Input in the following format:
A B C
Output
If the given triple is poor, print
Yes; otherwise, printNo.Examples
Input
5 7 5
Output
Yes
Input
4 4 4
Output
No
Input
4 9 6
Output
No
Input
3 3 4
Output
Yes
Assistant
a, b, c = map(int, input().split()) s = {a, b, c} print("Yes" if len(s) == 2 else "No")
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.