d=[]
with open("102_triangles.txt") as f:
for line in f:
d.append([int(i) for i in line.split(",")])
s=0
for a1,a2,b1,b2,c1,c2 in d:
u=(b2-a2)*(0-a1)-(b1-a1)*(0-a2)
v=(c2-b2)*(0-b1)-(c1-b1)*(0-b2)
w=(a2-c2)*(0-c1)-(a1-c1)*(0-c2)
if (u > 0 and v > 0 and w > 0) or (u < 0 and v < 0 and w < 0):
s+=1
print s