Given a small graph, decide whether some edges can be kept so every vertex has degree exactly 1.
An undirected graph has NNN vertices and MMM edges.
Write a program that decides whether you can delete some of the edges so that every vertex has degree exactly 111.
The first line contains NNN and MMM. (2≤N≤1002 \le N \le 1002≤N≤100, 1≤M≤1001 \le M \le 1001≤M≤100)
Each of the next MMM lines describes one edge and contains the numbers of the two vertices it joins.
Two vertices can be joined by more than one edge. There are no loops. Vertex numbers run from 111 to NNN.
Print 111 if deleting some edges can make every vertex have degree 111, and 000 otherwise.