#include <vector>
#include <variant>

using namespace std;

variant<bool, vector<pair<int, int>>> find_numbering(int N, vector<int> A) { 
    vector<pair<int, int>> edges;
    bool sol_exists = false;
    
    // Your algorithm here!

    if (sol_exists) {
        return edges;
    } else {
        return false;
    }

}
