#143. 彩票结果判断
彩票结果判断
Red Lottery Ticket
Background
Dawei is checking his red lottery ticket. The ticket has three numbers, and , each being or . He needs your help to determine the prize based on a specific set of rules.
Problem Description
You have a red lottery ticket showing ints and , each of which is or .
If they are all the value , the result is . Otherwise if they are all the same, the result is . Otherwise so long as both and are different from , the result is . Otherwise the result is .
Input Format
Input is given from Standard Input in the following format.
a b c
Output Format
Output is printed to Standard Output in the following format.
result
Sample
2 2 2
10
2 2 1
0
0 0 0
5
Sample Explanation
Sample 1: . All numbers are , satisfying the first condition, so the result is .
Sample 2: . Does not satisfy the condition that all numbers are . Does not satisfy the condition that all numbers are the same. () is not different from (), so it does not satisfy the condition that both and are different from . Thus, the result is .
Sample 3: . Does not satisfy the condition that all numbers are . Satisfies the condition that all numbers are the same, so the result is .
Constraints
Time limit: second, Memory limit: KiB for each test case.