a =[50,80,61,70,92] x = y = z = 0 for i in a: if i 6gt;= 80: x += 1 elif i >= 60: y += 1 else: z += 1 print(x,y,z)