#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, v;
  cin >> n >> m >> v;
  if (m < (n - 1) || m > (((n - 1) * (n - 2)) / 2 + 1)) {
    cout << "-1" << endl;
    return 0;
  }
  int notconnected;
  if (v == n) {
    notconnected = n - 1;
  } else {
    notconnected = v + 1;
  }
  cout << v << " " << notconnected << endl;
  int count = 1;
  for (int i = 1; i <= n; i++) {
    for (int j = i + 1; j <= n; j++) {
      if (i != notconnected && j != notconnected) {
        if (count == m) {
          return 0;
        }
        cout << i << " " << j << endl;
        count++;
      }
    }
  }
  return 0;
}
