#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(nullptr);
  long long x, n, m, v;
  cin >> n >> m >> v;
  vector<pair<long long, long long> > ans;
  for (int i = 1; i <= n; i++) {
    if (i != v) {
      x = i;
      break;
    }
  }
  if (ans.size() < m) ans.push_back({v, x});
  for (int i = 1; i <= n; i++) {
    if (i == x || i == v) continue;
    if (ans.size() >= m) break;
    ans.push_back({v, i});
  }
  for (int i = 1; i <= n; i++) {
    for (int j = i + 1; j <= n; j++) {
      if (i == x || j == x || i == v || j == v) continue;
      if (ans.size() == m) break;
      ans.push_back({i, j});
    }
    if (ans.size() == m) break;
  }
  if (ans.size() != m || ans.size() < n - 1) {
    cout << "-1\n";
    return 0;
  }
  for (pair<long long, long long> x : ans)
    cout << x.first << " " << x.second << endl;
}
