Graph Maximum Matching

Given a small graph, decide whether some edges can be kept so every vertex has degree exactly 1.

Easy2GraphBacktrackingGreedyInterviewNo attempts yetTime limit2sMemory limit512 MB

Problem

An undirected graph has NN vertices and MM edges.

Write a program that decides whether you can delete some of the edges so that every vertex has degree exactly 11.

Input

The first line contains NN and MM. (2N1002 \le N \le 100, 1M1001 \le M \le 100)

Each of the next MM 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 11 to NN.

Output

Print 11 if deleting some edges can make every vertex have degree 11, and 00 otherwise.