//古朴。
```
include [HTML_REMOVED]
include [HTML_REMOVED]
include [HTML_REMOVED]
include [HTML_REMOVED]
using namespace std;
string team[10010];
int a[10010];
int main()
{
int n;
cin >> n;
for (int i = 0; i < n; i)
{
a[i]=1;
vector[HTML_REMOVED] b(3);
cin >> b[0] >> b[1] >> b[2];
sort(b.begin(),b.end());
string a1 = to_string(b[0]);
string a2 = to_string(b[1]);
string a3 = to_string(b[2]);
team[i] = a1 + a2 + a3;
}
for (int i = 0; i < n; i)
{
for (int j = 0; j < n; j)
{
if (i == j) continue;
else if (team[i] == team[j]) a[i];
}
}
int max = 0;
for (int i = 0; i < n; i++)
{
if (a[i] > max) max = a[i];
}
cout << max;
return 0;
}