not sure how to print this since N is very large no and 6 8 10 which are multiples of 3 4 5 are valid triplets to?
code written
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner scan=new Scanner(System.in);
int N=scan.nextInt();
	for(int X=N;X<=100000;X++)
	{
		boolean flag=false;
		for(int Y=N;Y<=100000;Y++)
		{
		
			
			if((N*N)==(Y*Y-X*X))
			{
				
				for(int i=2;i<=10;i++)
				{
					if(X%i==0&&N%i==0&&Y%i==0)
					{
//							System.out.println(X+" “+Y);
flag=true;
System.out.println(”-1");
break;
}
}
if(flag==false)
{
System.out.println(X+" "+Y);
					flag=true;
					break;
				}
				
			}
				
				
			
			
			
			if(flag==true)
			{
				break;
			}
		}
		
		if(flag==true)
		{
			break;
		}
	
	}
}
}
