eof error in python program

i’ve written a simple program to find number of common elements among two lists…i’m getting eof error in first line itself…help me find where the problem is

t=int(input())
while(t):
count=0
n=input()
l1=list(map(int,input(),split()))
l2=list(map(int,input().split()))
for x in l1:
if x in l2:
count=count+1
print(count)
t=t-1

It means that you are taking more input than required. Check the input format and your input method. Also, whats the question? We need that to rule out that test cases have any issue (though its rare)

you should change your list .

l1=list(map(int,input().split())

//