#include <bits/stdc++.h>
using namespace std;
const long long Maxn = 3e5 + 7;
const long long Max = 1e3 + 7;
const long long Mod = 1e9 + 7;
const long long Inf = 2e9 + 1e8;
int main() {
  long long n, m, v;
  cin >> n >> m >> v;
  if (m < (n - 1) || ((n - 1) * (n - 2) / 2) + 1 < m) {
    cout << "-1" << endl;
    return 0;
  }
  long long u = 1;
  if (u == v) u++;
  for (long long i = 1; i <= n; i++)
    if (i != v) cout << v << " " << i << endl, m--;
  for (long long i = n; i >= 1 && m; i--) {
    for (long long j = 1; j < i && m; j++) {
      if (j != u && j != v && i != v && i != u) {
        cout << i << " " << j << endl;
        m--;
      }
    }
  }
  return 0;
}
