import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) {
Main main = new Main();
main.process();
}
int n,m;
List<Integer> [] adjList;
void process() {
readInput();
}
private void readInput() {
BufferedReader reader = new BufferedReader(
new InputStreamReader(System.in) );
try {
String[] items = reader.readLine().split(" ");
n = Integer.parseInt(items[0]);
m = Integer.parseInt(items[1]);
adjList = (List<Integer>[])(new List[n]);
for(int i=0; i<n; i++) {
adjList[i] = new ArrayList<Integer>();
}
for(int i=0; i<m; i++) {
items = reader.readLine().split(" ");
int u = Integer.parseInt(items[0]) - 1;
int v = Integer.parseInt(items[1]) - 1;
adjList[u].add(v);
adjList[v].add(u);
}
} catch(Exception e) {
}
}
}