#include <bits/stdc++.h>
using namespace std;
int n, m, k;
vector<int> v;
int main() {
  int i, j;
  cin >> n >> m >> k;
  int t = (k == 1 ? 2 : 1);
  int s = 1 + (n - 2) * (n - 1) / 2;
  if (m >= n - 1 && m <= s) {
    for (i = 1; i <= n; i++)
      if (i != t) {
        v.push_back(i);
      }
    cout << t << " " << k << endl;
    m--;
    for (i = 0; i < v.size() - 1; i++) {
      cout << v[i] << " " << v[i + 1] << endl;
      m--;
    }
    for (i = 0; m && i < v.size(); i++)
      for (j = i + 2; m && j < v.size(); j++) {
        cout << v[i] << " " << v[j] << endl;
        m--;
      }
  } else
    cout << -1 << endl;
}
