Tony likes coloring books.
Tony first draws a picture using only circles and straight lines that join two circles. Not every pair of circles has a line between them. After drawing, he wants to color the circles so that two circles joined by a line get different colors.
Finding the smallest number of colors is hard, so Tony only wants to know whether two colors are enough.
You are given the numbers of the circles and the lines that join them. Decide whether the picture can be colored with two colors.