3 2
1 0 1
1 2
2 3
 10 10
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1
6 7
8 3
6 4
4 2
9 2
5 10
9 8
10 7
5 1
6 2

2
1
2
 0

#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n, m;
  cin >> n >> m;
  vector<long long> d(n);
  for (long long i = 0; i < n; i++) {
    cin >> d[i];
    if (d[i] <= 0) {
      cout << 0 << endl;
      return 0;
    }
  }
  if (m > 0)
    cout << "1\n1" << endl;
  else
    cout << -1 << endl;
}
