#include <bits/stdc++.h>
using namespace std;
const long long int mod = 1e9 + 7;
bool compare(pair<int, int> p1, pair<int, int> p2) {
  return p1.second < p2.first;
}
int n, m, k;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cin >> n >> m >> k;
  if (m > (n - 1) * (n - 2) / 2 + 1 or m < n - 1) {
    cout << -1;
    return 0;
  }
  int mark = (k == n ? n - 1 : n);
  cout << k << " " << mark << "\n";
  m--;
  for (int i = 1; i < n and m; i++)
    for (int j = i + 1; j <= n and m; j++) {
      if (j == mark) continue;
      cout << i << " " << j << "\n";
      m--;
    }
  return 0;
}
