You are given a simple undirected graph $$$G$$$ with $$$n$$$ vertices and $$$m$$$ black edges. The $$$i$$$-th black edge connects vertices $$$u_i$$$ and $$$v_i$$$. For every pair of distinct vertices not connected by a black edge, there is a white edge between them.
We call two distinct vertices $$$x$$$ and $$$y$$$ close to gray if both of the following conditions hold:
Find the number of unordered pairs $$$(x, y)$$$, where $$$1 \leq x \lt y \leq n$$$, that are close to gray.
The first line contains two integers $$$n$$$ and $$$m$$$, representing the number of vertices and black edges, respectively.
Each of the next $$$m$$$ lines contains two integers $$$u_i$$$ and $$$v_i$$$, indicating that there is a black edge between them.
Output a single integer representing the number of unordered pairs that are close to gray.
4 41 32 31 42 4
2
6 111 21 31 52 32 42 63 43 53 64 55 6
4
252525 0
0