struct kkk{ string name; int sum,id,s1,s2,s3; bool operator < (const kkk &a) const{ if(a.sum != sum)return sum < a.sum; return id < a.id; } };