#include #include using std::vector; int lcs3(vector &a, vector &b, vector &c) { //write your code here return std::min(std::min(a.size(), b.size()), c.size()); } int main() { size_t an; std::cin >> an; vector a(an); for (size_t i = 0; i < an; i++) { std::cin >> a[i]; } size_t bn; std::cin >> bn; vector b(bn); for (size_t i = 0; i < bn; i++) { std::cin >> b[i]; } size_t cn; std::cin >> cn; vector c(cn); for (size_t i = 0; i < cn; i++) { std::cin >> c[i]; } std::cout << lcs3(a, b, c) << std::endl; }