#include <bits/stdc++.h>
using namespace std;
long long n, m, v, x;
int main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  cin >> n >> m >> v;
  if ((((n - 1) * (n - 2) / 2) + 1 < m) || (m < (n - 1)))
    return cout << -1 << '\n', 0;
  for (int i = 1; i <= n; i++)
    if (i != v) cout << v << " " << i << '\n', x = i;
  m -= (n - 1);
  for (int i = 1; i <= n; i++) {
    for (int j = i + 1; j <= n; j++) {
      if (!m) return 0;
      if (i != x && j != x && i != v && j != v)
        cout << i << " " << j << '\n', m--;
    }
  }
}
