public static void main(String[] args) throws IOException {
		int n = readInt();
		int m = readInt();
		
		int[] xs = new int[n];
		for(int i = 0; i < n; i++){
			xs[i] = readInt();
		}
		
		Arrays.sort(xs);
		int v1 = 0, v2 = 0;
		for(int i = 0, j = n - 1; i < j;) {
			int s = xs[i] + xs[j];
			if(s == m) {
				v1 = xs[i];
				v2 = xs[j];
				break;
			} else if(s > m) {
				j--;
			} else {
				i++;
			}
		}
		
		if(v1 > 0) {
			System.out.println(v1 + " " + v2);
		} else {
			System.out.println("No Solution");
			
		}
	}