import java.io.*;
class Main{
public static void main(String[] args) throws Exception{
String[] ts={"A.txt","B.txt","C.txt"};
Scanner[] ss=new Scanner[ts.length];
for(int i=0;i
}
ArrayList
while(ss[0].hasNext()){
list1.add(ss[0].next());
}
ArrayList
while(ss[1].hasNext()){
String n=ss[1].next();
if(list1.contains(n)){
list2.add(n);
}
}
while(ss[2].hasNext()){
String n=ss[2].next();
if(list2.contains(n)){
list2.remove(n);
}
}
for(int i=0;i
}
System.out.println(list2.size());
}
}