class Pair {

    @Override
    public int hashCode() {
        int result = 0;
        if (left != null) result += left.hashCode();
        if (right != null) result = 31 * result + right.hashCode();
        return result;
    }

    public  Pair(T left, U right);

}