#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int m;
  int v;
  cin >> n >> m >> v;
  int anchor = 0;
  v--;
  if (v == 0) {
    anchor = 1;
  }
  if (m < n - 1) {
    cout << (-1) << "\n";
    return 0;
  }
  vector<pair<int, int>> tmp(m);
  int count = 0;
  tmp[0] = make_pair(v + 1, anchor + 1);
  m--;
  count++;
  for (int i = 0; i < n; ++i) {
    for (int j = i + 1; j < n; ++j) {
      if (i != anchor and j != anchor) {
        tmp[count] = make_pair(i + 1, j + 1);
        m--;
        count++;
      }
      if (m <= 0) {
        break;
      }
    }
    if (m <= 0) {
      break;
    }
  }
  if (m != 0) {
    cout << (-1) << "\n";
  } else {
    for (int i = 0; i < tmp.size(); ++i) {
      cout << tmp[i].first << " " << tmp[i].second << "\n";
    }
  }
}
