#include using namespace std; int main() { int N,M; cin >> N >> M; cout << M << endl; for(int i=0; i> u >> v; cout << i+1 << endl; } }