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