An evil wizard stared at Wayne's father and cleverly dodged his father's bodyguard. First, he tortured Wayne's family.
Wayne hid. Wayne listened to the screams of his family, and his fear could not subside for a long time. Wayne left home
as soon as the wicked old witch had gone. When Wayne ran, she even heard the screams of the family. Since that day,
Wayne has believed that light can't save the world, because in demasiari, the light magician will never lack, just like the most
powerful and beautiful laches can't save the world in this world. From that day on, Wayne felt like a dark hunter. Wayne
survived on the money left by her father. Soon, a guide was willing to take her as an apprentice and teach Wayne martial
arts and the use of crossbow. Of course, we should test her ability before we teach her again. For a certain tree, you can
add a real weight x (floating-point type) to the edge of the simple path between any two leaves. Now let her judge whether
the edge weight of each edge can be any value through such operation.However, Wayne can't do this. Now, please help
her judge if the tree can do it ,output"YE5", else output"NO";

1 6 1 2 3 4 5 6 1 2 1 1 3 1 1 4 1 2 5 1 2 6 1
YE5