\begin{problem}{Different Dices}{\textsl{standard input}}{\textsl{standard output}}{1 second}{256 mebibytes}{}

Dice is a set of six non-negative integers (not necessarily different). All dices in this problem are balanced and each of six integers is equiprobably. Lets talk about distribution of the roll of two dices (not necessarily equal dices). Two pairs of two dices are equivalent if their distributions are equal (same values with same probability). Your task is to find how many different pairs of dices are equivalent to a given one. Two pairs are not different if they distinguished only by order of dices.

\InputFile 

In the first line you are given $6$ non-negative integers -- values of the first dice. In the second line you are given 6 non-negative integers -- values of the second dice. All numbers don't exceed $1000$. 

\OutputFile

Number of different pairs of dices equivalent to a given pair including itself.

\Examples
\begin{example}
\exmp{
1 2 3 4 5 6
1 2 3 4 5 6
}{
5
}%
\end{example}
\end{problem}

