Problem: Define the simple skewness of a collection of numbers to be the collection's mean minus its median. You are given a list of n (not necessarily distinct) integers. Find the non-empty subset (with repetition) with the maximum simple skewness.

The mean of a collection is the average of its elements. The median of a collection is its middle element when all of its elements are sorted, or the average of its two middle elements if it has even size.

Input

The first line of the input contains a single integer n (1 ≤ n ≤ 200 000) — the number of elements in the list.

The second line contains n integers xi (0 ≤ xi ≤ 1 000 000) — the ith element of the list.

Output

In the first line, print a single integer k — the size of the subset.

In the second line, print k integers — the elements of the subset in any order.

If there are multiple optimal subsets, print any.

Examples

Input

4
1 2 3 12


Output

3
1 2 12 


Input

4
1 1 2 2


Output

3
1 1 2 


Input

2
1 2


Output

2
1 2

Note

In the first case, the optimal subset is <image>, which has mean 5, median 2, and simple skewness of 5 - 2 = 3.

In the second case, the optimal subset is <image>. Note that repetition is allowed.

In the last case, any subset has the same median and mean, so all have simple skewness of 0.

Solution (in JAVA):

Solution:
import java.util.*;
import java.io.*;

public class E {
	FastScanner in;
	PrintWriter out;

	long[] s;

	void init(long[] x) {
		s = new long[x.length];
		for (int i = 0; i < s.length; i++) {
			s[i] = x[i];
			if (i > 0) {
				s[i] += s[i - 1];
			}
		}
	}

	long sum(int l, int r) {
		if (r == 0) {
			return 0;
		}
		long res = s[r - 1];
		if (l > 0) {
			res -= s[l - 1];
		}
		return res;
	}

	int n;
	long[] x;

	long f(int i, int k) {
		long val = sum(i - k, i) + sum(n - k, n) + x[i];
		val -= (2 * k + 1) * x[i];
		return val;
	}

	public void solve() throws IOException {
		n = in.nextInt();
		x = new long[n];
		for (int i = 0; i < n; i++) {
			x[i] = in.nextLong();
		}
		Arrays.sort(x);
		init(x);
		long bp = 0;
		long bq = 1;
		int bi = -1;
		int bk = -1;
		for (int i = 0; i < n; i++) {
			int kl = 0, kr = Math.min(i, n - i - 1) + 1;
			while (kr - kl > 1) {
				int km = (kl + kr) / 2;
				if (f(i, km) * (2 * km - 1) > f(i, km - 1) * (2 * km + 1)) {
					kl = km;
				} else {
					kr = km;
				}
			}
			if (f(i, kl) * bq >= bp * (2 * kl + 1)) {
				bp = f(i, kl);
				bq = 2 * kl + 1;
				bi = i;
				bk = kl;
			}
		}
		out.println(2 * bk + 1);
		for (int i = bi - bk; i <= bi; i++) {
			out.print(x[i] + " ");
		}
		for (int i = x.length - bk; i < x.length; i++) {
			out.print(x[i] + " ");
		}
	}

	public void run() {
		try {
			in = new FastScanner();
			out = new PrintWriter(System.out);

			solve();

			out.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	class FastScanner {
		BufferedReader br;
		StringTokenizer st;

		FastScanner() {
			br = new BufferedReader(new InputStreamReader(System.in));
		}

		String next() {
			while (st == null || !st.hasMoreTokens()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}

		int nextInt() {
			return Integer.parseInt(next());
		}

		long nextLong() {
			return Long.parseLong(next());
		}

		double nextDouble() {
			return Double.parseDouble(next());
		}
	}

	public static void main(String[] arg) {
		new E().run();
	}
}