11 lines
202 B
Python
11 lines
202 B
Python
CPU = 0
|
|
MEM = 0
|
|
HDD = 0
|
|
n = int(input())
|
|
for _ in range(n):
|
|
c, m, h = map(lambda s: 1 if s == "J" else 0, input().strip().split())
|
|
CPU += c
|
|
MEM += m
|
|
HDD += h
|
|
print(min((CPU, MEM, HDD)))
|