Getting wrong answer on submitting can someone tell me what's wrong with this code(MATCHES problem)

for _ in range(int(input())):
l = list(map(int,input().split()))
c=0
s = list()
d=[]
s = l[0]+l[1]
s =str(s)
for i in s:
d.append(i)
for i in d:

		if i=='0' or i=='4':
			c=c+4
		if i=='1':
			c=c+2
		if i=='2' or i=='3' or i=='5':
			c=c+5
		if i=='6' or i=='9':
			c=c+6
		if i=='7':
			c=c+3
		if i=='8':
			c=c+7
	print(c)

Check the problem again!! If i==‘0’ then,count =count +6;

I got it, that’s silly one .Thanks☺