#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e8;
const double EPS = 1e-6;
const long long MOD = (long long)(1e5);
const long long MAXV = (long long)(1e4 + 10);
const long long MAXE = (long long)(4e5 + 10);
int V, E, X, Y;
int L;
int cont;
int main() {
  scanf("%d%d%d", &V, &E, &X);
  L = (V - 1) * (V - 2) / 2 + 1;
  if (E > L || E < V - 1)
    printf("-1\n");
  else {
    for (int i = 1; i <= V; i++) {
      if (i != X) {
        Y = i;
        break;
      }
    }
    if (cont == E - 1) {
      printf("%d %d\n", X, Y);
      return 0;
    }
    for (int i = 1; i < V; i++) {
      if (i == Y) continue;
      for (int j = i + 1; j <= V; j++) {
        if (j == Y) continue;
        printf("%d %d\n", i, j);
        cont++;
        if (cont == E - 1) {
          printf("%d %d\n", X, Y);
          return 0;
        }
      }
    }
  }
  return 0;
}
