#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, m, v, i, j;
  cin >> n >> m >> v;
  long long x = n - 2;
  long long y = ((n - 2) * (n - 1)) / 2;
  if (y < m - 1) {
    cout << -1;
    return 0;
  }
  long long p = -1, q = -1;
  for (i = 1; i <= n; i++) {
    if (i == v) continue;
    if (p == -1)
      p = i;
    else {
      q = i;
      break;
    }
  }
  vector<pair<long long, long long> > ans;
  ans.push_back(make_pair(p, v));
  if (m - 1 < n - 2) {
    cout << -1;
    return 0;
  }
  long long cnt = 1;
  for (i = 1; i <= n; i++) {
    if (cnt == m) break;
    if (i == p) continue;
    for (j = i + 1; j <= n; j++) {
      if (cnt == m) break;
      if (j == i || j == p) continue;
      ans.push_back(make_pair(i, j));
      cnt++;
    }
  }
  for (i = 0; i < ans.size(); i++) {
    cout << ans[i].first << " " << ans[i].second << endl;
  }
}
