public static void find(int[] a,int target){
		int m = 0;
		int n = 0;
		boolean flag = false;
		for(int i = 0; i < a.length; i++){
			for(int j = i+1; j < a.length; j++){
				if(a[i] * 2 > target){
					i = a.length;
					j = a.length;
					break;
				}
				int temp = a[i] + a[j];
				if(temp > target){
					break;
				}else if(temp == target){
					m = a[i];
					n = a[j];
					flag = true;
					i = a.length;
					j = a.length;
					break;
				}
			}
		}
		if(!flag){
			System.out.println("-1 -1");
		}else{
			if(m > n)
				System.out.println(n+" "+m);
			else
				System.out.println(m+" "+n);
		}
			
	}