Sergey Semyonovich is a mayor of a county city N and he used to spend his days and nights in thoughts of further improvements of Nkers' lives. Unfortunately for him, anything and everything has been done already, and there are no more possible improvements he can think of during the day (he now prefers to sleep at night). However, his assistants have found a solution and they now draw an imaginary city on a paper sheet and suggest the mayor can propose its improvements.

Right now he has a map of some imaginary city with $n$ subway stations. Some stations are directly connected with tunnels in such a way that the whole map is a tree (assistants were short on time and enthusiasm). It means that there exists exactly one simple path between each pair of station. We call a path simple if it uses each tunnel no more than once.

One of Sergey Semyonovich's favorite quality objectives is the sum of all pairwise distances between every pair of stations. The distance between two stations is the minimum possible number of tunnels on a path between them.

Sergey Semyonovich decided to add new tunnels to the subway map. In particular, he connected any two stations $u$ and $v$ that were not connected with a direct tunnel but share a common neighbor, i.e. there exists such a station $w$ that the original map has a tunnel between $u$ and $w$ and a tunnel between $w$ and $v$. You are given a task to compute the sum of pairwise distances between all pairs of stations in the new map.


-----Input-----

The first line of the input contains a single integer $n$ ($2 \leq n \leq 200\,000$) — the number of subway stations in the imaginary city drawn by mayor's assistants. Each of the following $n - 1$ lines contains two integers $u_i$ and $v_i$ ($1 \leq u_i, v_i \leq n$, $u_i \ne v_i$), meaning the station with these indices are connected with a direct tunnel.

It is guaranteed that these $n$ stations and $n - 1$ tunnels form a tree.


-----Output-----

Print one integer that is equal to the sum of distances between all pairs of stations after Sergey Semyonovich draws new tunnels between all pairs of stations that share a common neighbor in the original map.


-----Examples-----
Input
4
1 2
1 3
1 4

Output
6

Input
4
1 2
2 3
3 4

Output
7



-----Note-----

In the first sample, in the new map all pairs of stations share a direct connection, so the sum of distances is $6$.

In the second sample, the new map has a direct tunnel between all pairs of stations except for the pair $(1, 4)$. For these two stations the distance is $2$.

```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 = 'import sys\nimport threading\nsys.setrecursionlimit(2100000)\n\ndef main():\n    def counter(graph,vert,memo,pard=None):\n        d = 0\n        for c in graph[vert]:\n            if c!=pard:\n                if len(graph[c])==1:\n                    memo[c]=0\n                else:\n                    memo[c]=counter(graph, c, memo, vert)[0]\n                d += memo[c]+1\n        return((d, memo))\n\n    n=int(input())\n    vizinhos=[]\n\n    for _ in range(n):\n        vizinhos.append([])\n\n    for _ in range(n-1):\n        i, j=map(int, input().split())\n        vizinhos[i-1].append(j-1)\n        vizinhos[j-1].append(i-1)\n\n    same=1\n    layer=[0]\n    par=[None]\n    j=0\n    while layer:\n        j+=1\n        n_layer=[]\n        n_pars=[]\n        for i in range(len(layer)):\n            for vert in vizinhos[layer[i]]:\n                if vert!=par[i]:\n                    n_layer.append(vert)\n                    n_pars.append(layer[i])\n        layer=n_layer\n        par=n_pars\n        if j%2==0:\n            same+=len(layer)\n    bipartite = same*(n-same)\n    info=counter(vizinhos,0,[None]*n)[1]\n    dist=0\n    for g in info:\n        if g!=None:\n           dist += (g+1)*(n-g-1)\n    print((dist+bipartite)//2)\n \nthreading.stack_size(140000000)\nmain_thread=threading.Thread(target=main)\nmain_thread.start()\nmain_thread.join()'
_co = compile(_CODE, USER_FILENAME, "exec")
exec(_co, ns, ns)

```

Measured memory_bytes: 244815