#include "Set.h"
#include <iostream>

using namespace std;

int main()
{
	Set<long> set1;
	cout << "Input first set (EOF to finish):\n";
	cin >> set1;

	Set<long> set2;
	cout << "Input second set (EOF to finish):\n";
	cin.clear();
	cin >> set2;

	Set<long> set3 = set1 + set2;

	cout << set1 << " + " << set2 << " = " << set3 << endl;
	cout << set1 << " * " << set2 << " = " << set1 * set2 << endl;

	Set<long> set4;
	for ( Set<long>::ConstIterator itr = set3.begin(); itr != set3.end(); itr++ )
		set4.add( *itr );

	cout << set3 << " == " << set4 << ": " << set3 == set4 << endl;

	return 0;
}
