#include using namespace std; int n, m; int g[55][55]; int main(){ cin >> n >> m; for(int i = 0; i < m; i++){ int a, b; cin >> a >> b; g[a][b] = g[b][a] = 1; } int t = 0; for(int i = 0; i < n; i++){ for(int j = i + 1; j < n; j++){ for(int k = j + 1; k < n; k++){ for(int l = k + 1; l < n; l++){ int x = g[i][j] + g[i][k] + g[i][l]; int y = g[j][i] + g[j][k] + g[j][l]; int z = g[k][i] + g[k][j] + g[k][l]; int w = g[l][i] + g[k][j] + g[l][k]; if(x == 2 && y == 2 && z == 2 && w == 2)t++; } } } } cout << t << endl; return 0; }