#include <bits/stdc++.h>
using namespace std;
unsigned int n, m, x;
vector<int> v;
int main() {
  cin >> n >> m >> x;
  for (int i = 1; i <= n; i++) {
    if (i != x) v.push_back(i);
  }
  int r = n - 1 + ((n - 2) * (n - 3)) / 2;
  if (r < m || m < n - 1) {
    cout << -1;
    return 0;
  } else {
    for (int i = 0; i < n - 1; i++) cout << x << " " << v[i] << endl;
    m -= n - 1;
    for (int i = 1; i < n - 2; i++) {
      for (int j = i + 1; j < n - 1; j++) {
        if (m == 0)
          break;
        else {
          cout << v[i] << " " << v[j] << endl;
          m--;
        }
      }
    }
  }
}
