#include <bits/stdc++.h>
using namespace std;
string sss = "0123456789ABCDEF";
int main() {
  long long n, m, k, i, j, oita;
  cin >> n >> m >> k;
  map<pair<long long, long long>, bool> vis;
  long long tot = ((n - 2) * (n - 1)) / 2;
  if (tot + 1 < m || m + 1 < n) {
    cout << -1 << endl;
    return 0;
  }
  for (i = 1; i <= n && m > 0; i++) {
    if (i == k) continue;
    cout << i << " " << k << endl;
    vis[make_pair(i, k)] = 1;
    vis[make_pair(k, i)] = 1;
    m--;
  }
  if (k == n)
    oita = 1;
  else
    oita = n;
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= n && m > 0; j++) {
      if (i == j || vis[make_pair(i, j)] || oita == i || oita == j) continue;
      cout << i << " " << j << endl;
      vis[make_pair(i, j)] = 1;
      vis[make_pair(j, i)] = 1;
      m--;
    }
    if (!m) break;
  }
}
