public void getResUndThou(){
		long sqt = (long) Math.sqrt(1e16);
		quali[1] = true;
		quali[4] = true;
		quali[9] = true;
		isPanlindrome(sqt * sqt);
		for(long i = 4; i <= sqt; i++){
			if(isPanlindrome(i) && isPanlindrome(i * i)){
				if(i*i <= upper) quali[(int) (i*i)] = true;
				System.out.println(i*i + " " + i);
			}
		}
	}