#include using namespace std; int mp[55][55],ans,n,m,x,y; bool check(int a,int b,int c,int d){ if (mp[a][b]+mp[a][c]+mp[a][d]==3) return 0; if (mp[a][b]+mp[b][c]+mp[b][d]==3) return 0; if (mp[a][c]+mp[b][c]+mp[c][d]==3) return 0; if (mp[a][d]+mp[b][d]+mp[c][d]==3) return 0; if (mp[a][b]+mp[a][c]+mp[a][d]+mp[b][c]+mp[b][d]+mp[c][d]==4) { //cout<>n>>m; for (int i=1;i<=m;i++){ cin>>x>>y; mp[x][y]++; mp[y][x]++; } for (int a=0;a<=n;a++) for (int b=a+1;b<=n;b++) for (int c=b+1;c<=n;c++) for (int d=c+1;d<=n;d++){ if (check(a,b,c,d)) ans++; } cout<