Three sequences of integers are given. Find the length of their longest common subsequence.
Contains the description of three sequences. Each sequence is given in two lines. The first line contains the length of the sequence (1 \leq n \leq 100), and the second line contains its elements (-bit integers).
Print the length of the longest common subsequence.
Example 1
Example 2