#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
constexpr ll mod = 1e9 + 7;
int n, m, v;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cin >> n >> m >> v;
  v--;
  if (m < n - 1) {
    cout << -1;
    return 0;
  }
  vector<pii> edges;
  edges.push_back({0, 1});
  m--;
  for (int i = 1; i < n; i++) {
    if (m == 0) break;
    for (int j = i + 1; j < n; j++) {
      if (m == 0) break;
      edges.push_back({i, j});
      m--;
    }
  }
  if (m > 0) {
    cout << -1;
    return 0;
  }
  for (auto edge : edges) {
    if (edge.first == 1)
      cout << v + 1 << ' ';
    else if (edge.first == v)
      cout << 2 << ' ';
    else
      cout << edge.first + 1 << ' ';
    if (edge.second == 1)
      cout << v + 1 << ' ' << "\n";
    else if (edge.second == v)
      cout << 2 << ' ' << "\n";
    else
      cout << edge.second + 1 << ' ' << "\n";
  }
  return 0;
}
