#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, v;
  cin >> n >> m >> v;
  if (m < n - 1 || m > ((n - 1) * (n - 2) / 2 + 1)) {
    printf("-1\n");
    return 0;
  }
  int count = 0;
  for (int i = 1; i <= n; i++) {
    if (i == v) continue;
    printf("%d %d\n", i, v);
    count++;
  }
  if (v == n) {
    n--;
  }
  for (int i = 1; i < n && count < m; i++) {
    for (int j = i + 1; j < n; j++) {
      if (count >= m) break;
      if (i == v || j == v) continue;
      printf("%d %d\n", i, j);
      count++;
    }
  }
  return 0;
}
