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