#include <bits/stdc++.h>
using namespace std;
int a[100013];
int main() {
  int n, m, v;
  cin >> n >> m >> v;
  if (((n - 1) * (n - 2)) / 2 + 1 < m || m < n - 1) {
    cout << -1;
    return 0;
  }
  for (int i = 0; i <= n; i++) {
    a[i] = i;
  }
  int w = (v + 1) % n;
  if (w == 0) w = n;
  cout << w << " " << v << endl;
  if (w == 2 && v == 1) {
    swap(a[w], a[1]);
  } else {
    if (v == 1) {
      swap(a[v], a[2]);
      swap(a[w], a[1]);
    } else {
      swap(a[w], a[1]);
      swap(a[v], a[2]);
    }
  }
  int c = 1;
  for (int i = 2; i <= n; i++) {
    for (int j = i + 1; j <= n; j++) {
      if (c == m) return 0;
      cout << a[i] << " " << a[j] << endl;
      c++;
    }
  }
  return 0;
}
