Checking for an undirected graph (#480) - Azerbaijan Computing Olympiad