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 CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
void ga(int N, int *A) {
  for (int i(0); i < N; i++) scanf("%d", A + i);
}
long long S[(200002)];
int N, A[(200002)];
struct STOP {
  clock_t S;
  void ini() { S = clock(); }
  bool ok(long double Z) {
    return (clock() - S) / (long double)CLOCKS_PER_SEC < Z;
  };
} F;
int I = 1, J = 1, U = 1, V = 1, u = 1, v = 1, g, W;
long double C, B = 1e18;
bool ok() { return J > 0 && I >= J && I + J < N; }
long double fit() {
  if (!ok()) return 1e18;
  long double a = (S[I] - (I - J ? S[I - J - 1] : 0)) +
                  (S[N - 1] - (N - J ? S[N - J - 1] : 0));
  return A[I] - a / (J * 2 | 1);
}
void nxt() {
  I = U, J = V;
  if (rand() & 1) {
    if (rand() & 1)
      --J;
    else
      ++J;
  } else if (rand() & 1) {
    if (rand() & 1)
      ++I;
    else
      --I;
  }
  if (W++ > 20 && !(rand() % 7)) {
    if (!(rand() & 1))
      J -= N / 10;
    else
      J += N / 10;
  }
}
void solANL() {
  long double T = 1e5, d, c = .999994, a = 1e-5;
  C = fit(), F.ini();
GOW:
  while (T > a) {
    nxt();
    d = fit() - C;
    if (d < 0 || exp(-d / T) > (rand() % (1000) * 1. / (1000))) {
      U = I, V = J, C = d + C;
      if (C < B) B = C, u = U, v = V;
    }
    T *= c;
  }
  if (!F.ok(2.5)) return;
  T = 1e5, W = 0;
  if (!g++)
    V = U = 1;
  else if (g++ == 1)
    V = (rand() << 16 | rand()) % N / 2 + 1,
    U = (rand() << 16 | rand()) % (N - 2 * V + 1) + V;
  goto GOW;
}
int main(void) {
  srand(time(0));
  scanf("%d", &N), ga(N, A), sort(A, A + N), *S = *A;
  if (N < 3) return printf("1\n%d\n", *A), 0;
  for (int k(1); k < N; k++) S[k] = A[k] + S[k - 1];
  V = N / 2 - 1, U = N / 2, solANL();
  I = u, J = v;
  if (fit() > -(1e-10)) return printf("1\n%d\n", *A), 0;
  printf("%d\n", v * 2 | 1);
  for (int i(0); i < v; i++) printf("%d ", A[u - i - 1]);
  for (int i(0); i < v; i++) printf("%d ", A[N - i - 1]);
  printf("%d\n", A[u]);
  return 0;
}