import sys

input=[]
for line in open(sys.argv[1]):
	input.append(line)

groups="".join(input).split("\n\n")

counts=0
for group in groups:
	
	individuals=group.strip().split("\n")
	answers={}
	for individual in individuals:
		for answer in individual:
			if not answer in answers:
				answers[answer]=0
			answers[answer]+=1

	for answer in answers:
		if answers[answer] == len(individuals):
			counts+=1

print(counts)

6757b8a9df4271b86d1515ec136ba474244b78fc
<mask token>

<mask token>
for line in open(sys.argv[1]):
    input.append(line)
<mask token>
for group in groups:
    individuals = group.strip().split('\n')
    answers = {}
    for individual in individuals:
        for answer in individual:
            if not answer in answers:
                answers[answer] = 0
            answers[answer] += 1
    for answer in answers:
        if answers[answer] == len(individuals):
            counts += 1
print(counts)

<mask token>
input = []
for line in open(sys.argv[1]):
    input.append(line)
groups = ''.join(input).split('\n\n')
counts = 0
for group in groups:
    individuals = group.strip().split('\n')
    answers = {}
    for individual in individuals:
        for answer in individual:
            if not answer in answers:
                answers[answer] = 0
            answers[answer] += 1
    for answer in answers:
        if answers[answer] == len(individuals):
            counts += 1
print(counts)

import sys
input = []
for line in open(sys.argv[1]):
    input.append(line)
groups = ''.join(input).split('\n\n')
counts = 0
for group in groups:
    individuals = group.strip().split('\n')
    answers = {}
    for individual in individuals:
        for answer in individual:
            if not answer in answers:
                answers[answer] = 0
            answers[answer] += 1
    for answer in answers:
        if answers[answer] == len(individuals):
            counts += 1
print(counts)

import sys

input=[]
for line in open(sys.argv[1]):
	input.append(line)

groups="".join(input).split("\n\n")

counts=0
for group in groups:
	
	individuals=group.strip().split("\n")
	answers={}
	for individual in individuals:
		for answer in individual:
			if not answer in answers:
				answers[answer]=0
			answers[answer]+=1

	for answer in answers:
		if answers[answer] == len(individuals):
			counts+=1

print(counts)
