SP1436 PT07Y - Is it a tree

Description

You are given an unweighted, undirected graph. Write a program to check if it's a tree topology.

Input Format

The first line of the input file contains two integers _N_ and _M_ --- number of nodes and number of edges in the graph (0 < _N_

Output Format

Print _YES_ if the given graph is a tree, otherwise print _NO_.