Three sequences of integers are given. Find the length of their longest common subsequence.
Contains the description of three sequences. Each sequence in given with two lines. First line contains the length of the sequence , and second line contains its elements ( bits integers).
Print the length of the longest common subsequence.