#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, v;
  cin >> n >> m >> v;
  if (m > ((n - 1) * (n - 2)) / 2 + 1) {
    cout << -1 << "\n";
    return 0;
  }
  if (m < n - 1) {
    cout << -1 << "\n";
    return 0;
  }
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    a[i] = (v + i - 1 + n) % n + 1;
  }
  a[0] = a[1];
  a[1] = v;
  for (int l = 0; l < n - 1; l++) {
    cout << a[l] << " " << a[l + 1] << "\n";
  }
  m -= (n - 1);
  if (m == 0) return 0;
  for (int i = 1; i < n; i++) {
    for (int j = i + 2; j < n; j++) {
      cout << a[i] << " " << a[j] << "\n";
      m--;
      if (m == 0) return 0;
    }
  }
  return 0;
}
