public static void Main()
var x = float.Parse(Console.ReadLine());
var y = float.Parse(Console.ReadLine());
var z = float.Parse(Console.ReadLine());
Console.WriteLine(Valid(x,y,z));
public static bool Valid(float x, float y, float z){
if (Pythag(x,y) % 1 != 0) return false;
if (Pythag(z,x) % 1 != 0) return false;
if (Pythag(z,y) % 1 != 0) return false;
public static float Pythag(float x, float y){
return (float)Math.Sqrt(x * x + y * y);