ll@(N,M,K);VI e(N);rep(M){ll@A,@B;e[--A]++;}wt(sum[i,0,N](max(0,K-e[i]))):