Write a program that takes three integers as input representing triangle sides. Check if the triangle is equilateral and valid (all sides equal and greater than zero). Output 1 if true, otherwise 0.