static int[] f(int N){
		int a=(int)sqrt(N);
		if(abs(a-sqrt(N))<1e-10)return new int[]{a%2==0?a:1,a%2==0?1:a};
		if(a%2==0)return new int[]{N-a*a<=a+1?a+1:(a+1)*(a+1)-N+1,N-a*a<=a+1?N-a*a:a+1};
		return new int[]{N-a*a<=a+1?N-a*a:a+1,N-a*a<=a+1?a+1:(a+1)*(a+1)-N+1};
	}