Equivalent Set
Time Limit: 1 sec
The Problem
If the elements of two or more sets are the same, they are called equivalent sets.
Example
A = {3, 5, 7} and B = {5, 3, 7} are two equal sets and written as A = B.
Again, if A = {3, 5, 7}, B = {5, 3, 3, 7} and C = {7, 7, 3, 5, 5} , the sets A, B and C are equivalent. That is, A = B = C.
Also if A = {3, 1, 3} and B = {1, 3, 1}, the sets A and B are equivalent (A = B).
It is to be noted if the order of elements is changed or if the elements are repeated, there will be no change of the set.
Write a program that check equivalent set. If two sets are equivalent then print A = B otherwise print A != B.
The Input
Input file consist of several test cases. Each test case contains a line and each line will contains six integer numbers A1, A2, A3, B1, B2, B3 here first 3 numbers (A1, A2, A3) are element of set A and last 3 numbers (B1, B2, B3) are element of set B. (0<=A1,A2,A3,B1,B2,B3<=9). Input is terminated by EOF.
The Output
For each test case you should output a line. Print "A = B" if the two sets are equivalent otherwise print "A != B" in seperate line.
Sample Input
3 5 7 5 3 7
3 5 7 2 3 7
2 3 5 5 2 3
Sample Output
A = B
A != B
A = B
Problem Setter: Shahin ShamS