ll n,m,a,b,z;{rd(n,m);Matrixc(++n,n);rep(m)rd(a,b),c[a][b]=c[b][a]=1;c=n*c-c*c;rep(i,n)rep(j,i)z+=(c[i][j]|c[i][1..j-1]|c[j][1..])>=0;wt(z);}