SP1435 PT07X - Vertex Cover

Description

You are given an unweighted, undirected tree. Write a program to find a vertex set of minimum size in this tree such that each edge has as least one of its end-points in that set.

Input Format

The first line of the input file contains one integer _N_ --- number of nodes in the tree (0 < _N_

Output Format

Print number of nodes in the satisfied vertex set on one line.