Corruption is on the rise in the country of Freedonia, Gru's home. Gru wants to end this for good and for that he needs the help of his beloved minions.
This corruption network can be represented in the form of a tree having N$N$ nodes and N−1$N-1$ edges. The nodes are numbered from 1$1$ to N$N$, and the tree is rooted at node 1$1$. These nodes represent the corrupt officials and each corrupt official works under some other corrupt official except the Boss who is represented by node 1$1$.
Gru believes in divide and conquer and thinks that this network needs to be divided into as many sub-networks as possible.
He commands the minions to kill some of the corrupt officials in order to break the network into maximum sub-networks. But as you know, these corrupt officials are very sharp, and hence these assassinations need to be done very smartly and silently, without leaving any traces.  To achieve this Gru devises a strategy, in which he designs an operation, and that operation can be applied by the minions any number of times (even 0). 
In one operation the minions can select any one leaf node official [that is an official who does not have any other official beneath him] in the graph and kill him along with all his ancestors$ancestors$ officials till the root$root$ of the tree in which the operation is applied (this is done to wipe all traces of the operation). This deleted all those nodes from the graph, and also, while doing so, all the associated edges/connections$edges/connections$ of the leaf node and its ancestors are also destroyed. Hence after applying this operation on any tree, it breaks into some connected components which are also trees, which are the new sub-networks.
Now the minions are a bit lazy and will do the task someday, but they need to submit a report to Gru containing the number of the maximum$maximum$ connected$connected$ components$components$ that they could achieve by applying the operation any number of times. To do this, the minions require your help. So help the minions by finding out the maximum$maximum$ no.$no.$ of$of$ connected$connected$ components$components$ that can be achieved.
Note: After each operation, the topmost node (node with the lowest level. It can be proved that there will always be a unique node with the lowest level in each tree) of each of the remaining trees becomes the root of that particular tree (that is, after the first operation it can be visualized that the graph converts into a forest of rooted trees)

-----Input:-----
- First line will contain N$N$, number of nodes in the tree. 
- Next N−1$N-1$ lines contains 2 integers U$U$, V$V$ denoting the endpoints of the ith$i^{th}$ edge.

-----Output:-----
- Print the maximum number of connected components you can obtain after doing the operation any number of times.

-----Constraints-----
- 1≤N≤106$1 \leq N \leq 10^6$
- 1≤U,V≤N$1 \leq U,V \leq N$

-----Sample Input:-----
7
1 2
1 3
2 4
2 5
3 6
3 7

-----Sample Output:-----
2

-----EXPLANATION:-----
We have 4 leaf nodes in this tree: 4 5 6 7. Suppose we delete node 5, then along with it we also delete node 2 and node 1. so after the deletion we are left with 2 trees, one consisting of only node 4 as the root node of that particular tree, and the other consisting of node 3,6,7 with node 3 as the root node. This can also be achieved by deleting any of the other leaf nodes and it can be proved that we cannot obtain more than 2 connected components in this example.

```python

USER_FILENAME = "<user_code>"
import sys, json, builtins
import math, heapq, bisect, itertools, functools, collections, statistics, fractions, decimal, operator, array, random, re, string, os, pathlib
try:
    import resource as _res
except Exception:
    _res = None
from collections import Counter, defaultdict, deque, OrderedDict
from functools import lru_cache, reduce
from itertools import accumulate, permutations, combinations, product
from math import gcd, ceil, floor, sqrt
from decimal import Decimal
try:
    from typing import *
except Exception:
    pass
try:
    sys.setrecursionlimit(1_000_000)
except Exception:
    pass
try:
    import site as _site
    try:
        _sys_sites = _site.getsitepackages() if hasattr(_site, "getsitepackages") else []
        for _p in _sys_sites:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
    try:
        _usp = _site.getusersitepackages()
        if isinstance(_usp, str):
            _usp = [_usp]
        for _p in _usp:
            if _p and _p not in sys.path:
                sys.path.append(_p)
    except Exception:
        pass
except Exception:
    pass

ns = {"__name__": "__main__"}
for _k, _v in list(globals().items()):
    if not _k.startswith("_"):
        ns[_k] = _v
_CODE = 'from sys import stdin,stdout\r\ninput=stdin.readline\r\nn=int(input())\r\na=[[] for i in range(n)]\r\nfor i in range(n-1):\r\n    u,v=map(int,input().split())\r\n    a[u-1].append(v-1)\r\n    a[v-1].append(u-1)\r\nb=[0]*n\r\nvis=[0]*n\r\nst=[(0,0)]\r\nvis[0]=1\r\npa=[0]*n\r\nwhile st:\r\n    x,y=st.pop()\r\n    b[x]=y\r\n    for i in a[x]:\r\n        if vis[i]==0:\r\n            pa[i]=x\r\n            vis[i]=1\r\n            if x==0:\r\n                st.append((i,y+len(a[x])-1))\r\n            else:\r\n                st.append((i,y+len(a[x])-2))\r\nc=[]\r\nfor i in range(1,n):\r\n    if len(a[i])==1:\r\n        c.append((b[i],i))\r\nc.sort()\r\nans=0\r\nwhile c:\r\n    x,y=c.pop()\r\n    m=y\r\n    p=0\r\n    while y!=0 and pa[y]!=-1:\r\n        y=pa[y]\r\n        if pa[y]==-1:\r\n            break\r\n        if y!=0:\r\n            p+=(len(a[y])-2)\r\n        else:\r\n            p+=(len(a[y])-1)\r\n    if p>=1:\r\n        p=0\r\n        while m!=0 and pa[m]!=-1:\r\n            x=m\r\n            if pa[m]==-1:\r\n                break\r\n            m=pa[m]\r\n            pa[x]=-1\r\n            if m!=0:\r\n                p+=(len(a[m])-2)\r\n            else:\r\n                p+=(len(a[m])-1)\r\n        if y==0:\r\n            pa[0]=-1\r\nfor i in range(n):\r\n    if pa[i]!=-1:\r\n        st=[i]\r\n        pa[i]=-1\r\n        while st:\r\n            x=st.pop()\r\n            for j in a[x]:\r\n                if pa[j]!=-1:\r\n                    pa[j]=-1\r\n                    st.append(j)\r\n        ans+=1\r\nprint(ans)'
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 14531