Group of Strangers

No attempts yetTime limit2sMemory limit256 MB

Problem

In an online social networking service, a user creates an account and connects to other users. Some services use one way follows, but in this problem every connection is bidirectional: if A is connected to B, then B is connected to A.

You are given the connections among NN users. Count the ways to choose three users who are strangers to each other. No two of the chosen three may be connected. If even one pair among them is connected, that group is not counted.

Two groups are different if and only if they differ in at least one member.

Input

The first line contains an integer TT (T60T \le 60), the number of test cases.

The first line of each test case contains two integers NN (3N50003 \le N \le 5000) and MM (0M200000 \le M \le 20000), the number of users and the number of connections. Each of the next MM lines contains two integers AA and BB (1A,BN1 \le A, B \le N, ABA \ne B), meaning that users AA and BB are connected. The same connection is never given twice.

Output

For each test case, print one line in the form Case #X: Y, where XX is the test case number starting from 1 and YY is the number of ways to choose three users who are strangers to each other.